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 |
Tags
- Protocol
- rxswift
- collectionview
- clean architecture
- MVVM
- swiftUI
- tableView
- SWIFT
- 클린 코드
- Human interface guide
- uitableview
- 리펙토링
- ios
- 스위프트
- 애니메이션
- Refactoring
- UITextView
- 리팩토링
- Observable
- Clean Code
- 리펙터링
- RxCocoa
- Xcode
- map
- combine
- HIG
- UICollectionView
- swift documentation
- uiscrollview
- ribs
Archives
- Today
- Total
목록BottomSheet 구현 방법 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] BottomSheet 구현 방법 (bottom sheet, floating panel)
구현 아이디어 - 뷰의 구조 레이아웃을 쉽게하기 위해서 뷰 2개를 사용 맨 아래에 깔린 뷰 - 터치 이벤트가 아래 뷰에 전달되는 PassThroughView를 사용 그 위에 UIView를 얹는 형태 (= bottomSheetView) BottomSheetView의 constraint left.right.bottom은 superview와 같도록 정의 top은 미리 정의해둔 yPosition만큼 top의 간격만큼 처리 // tip(아래쪽에 붙어있는 모드)과 full로 정하고, 각 yPosition을 계산 enum Mode { case tip case full } private enum Const { static let bottomSheetRatio: (Mode) -> Double = { mode in swi..
UI 컴포넌트 (swift)
2022. 6. 29. 02:11