일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 데이터최적화
- gesture
- stateobject
- combine
- auth
- swift
- ios
- RxSwift
- arkit
- GCD
- fullscreencover
- authentication
- withAnimation
- UIKit
- dataflow
- Animation
- Network
- ar
- 네트워크
- Concurrency
- Performance
- CS
- realitykit
- environmentobjet
- iphone
- SwiftUI
- state
- firebase
- 달력
- WWDC
Archives
- Today
- Total
목록DragGesture (1)
XLOG
[SwiftUI] Infinity Carousel 구현
오랜만에 포스팅이다. 두 가지 버전으로 InfinityCarousel 을 구현해볼 예정이다. 그 전에 알아야 할 것은 두가지 버전에 기본 원리는 똑같다. 만약 4가지의 ImageView를 돌리려고 가정을 해보자. let colors: [Color] = [.red, .green, .blue, .yellow] @State var currentIndex: Int = 0 GeometryReader { reader in let width = reader.size.width TabView(selection: $currentIndex) { ForEach(colors, id: \.self) { color in Rectangle() .fill(color) .frame(width: width) } } } 이런식으로 보통 ..
Swift/SwiftUI
2023. 12. 1. 23:06