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
- Observable
- ribs
- map
- 리팩토링
- swiftUI
- combine
- uitableview
- Protocol
- swift documentation
- MVVM
- Clean Code
- 클린 코드
- SWIFT
- HIG
- Human interface guide
- 애니메이션
- RxCocoa
- 스위프트
- 리펙터링
- UICollectionView
- ios
- Refactoring
- uiscrollview
- collectionview
- tableView
- clean architecture
- 리펙토링
- Xcode
- UITextView
- rxswift
Archives
- Today
- Total
목록notch (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 하단 버튼 SafeArea, 노치 대응 방법 (auto layout)
* (편의를 위해 SnapKit 사용) 하단 버튼 safe area 대응 방법 notch가 있는 경우와 없는 디바이스 모두 대응 방법 버튼의 layout left, right, bottom 모두 superview와 동일하도록 설정 self.button.snp.makeConstraints { $0.left.right.bottom.equalToSuperview() // TODO: height } 버튼의 크기를 60으로 맞추어야 하는 경우, 버튼의 상단을 safeArea의 하단으로부터 위로 60만큼 올라오도록 설정 self.button.snp.makeConstraints { $0.left.right.bottom.equalToSuperview() $0.top.equalTo(self.view.safeAreaLa..
iOS 기본 (swift)
2021. 12. 30. 01:32