반응형
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 | 31 |
Tags
- Observable
- 문자열
- NavigationLink
- Android
- string
- 웹뷰
- Java
- WebView
- gcd
- LazyHStack
- Swift
- Realtime Database
- UIScrollView
- SwiftLint
- RxSwift
- Firebase
- UITabBarController
- 라이트모드
- swipe
- dictionary
- subscript
- UIButton
- github
- Apple
- 다크모드
- remote config
- SwiftUI
- Alamofire
- autolayout
- ios
Archives
- Today
- Total
점진적 과부하 개발 블로그
iOS Autolayout Priority 본문
반응형
Constraint 우선순위
- 각 컨스트레인트에 대한 우선순위(priority)
- 앵커가 서로 충돌 될때 우선순위가 낮은거는 무시
- 1000이 가장 높다.
- 예를 들어 아래와 같이 앵커가 서로 충돌 되었을 떄
- 충돌된 Constraint의 priority의 값을 조절하여 우선순위를 가질수 있게 해준다.
Hugging
- 안으로 끌어안기
- 공간이 남아서 당겨지는 상황
Compression Resistance
- 밖으로 밀어내기
- 공간이 없어서 줄어드는 상황
반응형
'AutoLayout' 카테고리의 다른 글
iOS Autolayout Code로 작업하기 2 (0) | 2022.01.17 |
---|---|
iOS Autolayout Code로 작업하기 (0) | 2022.01.16 |
iOS Scroll View (0) | 2022.01.14 |
iOS Dynamic tableview cell (0) | 2022.01.13 |
iOS Autolayout self-sizing (0) | 2022.01.12 |