Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- UICollectionView
- rxswift
- Observable
- MVVM
- swift documentation
- uitableview
- Clean Code
- collectionview
- 애니메이션
- tableView
- 리팩토링
- 스위프트
- HIG
- map
- ribs
- 리펙터링
- UITextView
- combine
- uiscrollview
- RxCocoa
- Xcode
- SWIFT
- swiftUI
- 클린 코드
- clean architecture
- Refactoring
- 리펙토링
- Human interface guide
- Protocol
- ios
Archives
- Today
- Total
목록Swipe Down To Dismiss (1)
김종권의 iOS 앱 개발 알아가기
[iOS - SwiftUI] Swipe Down To Dismiss (아래로 스와이프하여 뷰 dismiss하는 방법)
Swipe Down To Dismiss 구현 아이디어 .gesture()와 DragGesture를 사용하여 drag 제스쳐 구현 (gesture와 DragGesture 개념을 모른다면, 이전 포스팅 글 참고) gesture 안에서 y축이 얼마나 변했는지와, y축 velocity 값을 가지고 dismiss할것인지 결정 dismiss할때는 NavigationLink의 인수 중 Binding 프로퍼티인 isActive값을 false로 변경 구현 편리를 위해 CGSize extension으로 - operator 구현 extension CGPoint { static func - (lhs: Self, rhs: Self) -> Self { CGPoint(x: lhs.x - rhs.x, y: lhs.y - rhs.y)..
iOS 응용 (SwiftUI)
2022. 9. 30. 22:50