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
- swiftUI
- Clean Code
- collectionview
- 애니메이션
- UITextView
- Human interface guide
- uitableview
- 리펙터링
- SWIFT
- uiscrollview
- Protocol
- map
- HIG
- ribs
- 클린 코드
- clean architecture
- swift documentation
- RxCocoa
- ios
- MVVM
- combine
- UICollectionView
- tableView
- Xcode
- Observable
- Refactoring
- rxswift
- 리펙토링
- 스위프트
- 리팩토링
Archives
- Today
- Total
목록하단 버튼 (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