일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- toolbarvisibility
- withAnimation
- swift
- Animation
- Network
- iphone
- gesture
- 접근성제어
- state
- SwiftUI
- 네트워크
- Concurrency
- WWDC
- CS
- avsession
- ios
- view
- UIKit
- dataflow
- authentication
- arkit
- Performance
- 최적화
- RxSwift
- GCD
- firebase
- 달력
- auth
- combine
- stateobject
Archives
- Today
- Total
목록InfinityCarousel (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