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
- collectionview
- HIG
- uitableview
- 리펙토링
- Human interface guide
- Clean Code
- ios
- rxswift
- map
- combine
- tableView
- swiftUI
- SWIFT
- clean architecture
- 스위프트
- MVVM
- UITextView
- Protocol
- Refactoring
- uiscrollview
- Observable
- 애니메이션
- RxCocoa
- UICollectionView
- 리팩토링
- ribs
- 클린 코드
- 리펙터링
- swift documentation
- Xcode
Archives
- Today
- Total
목록layoutpriority (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bbRs1N/btsLjdGvBXr/1GJpTCqCbw1OKF2lHjCNI1/img.png)
LayoutPriority 개념layoutPriority값이 크면, 뷰가 다른 뷰보다 커질 수 있는 힘이 큼기존 swift에서 ContentHuggingPriority, ContentCompressionResistancePriority 두 개를 두어서 헷갈렸던 것을 SwiftUI에서는 layoutPriority하나로 표현HStack에 두 개 의 텍스트가 있을 때 예시참고) 일반적으로는 HStack이 있을때 두 개의 뷰에는 동일한 width로 할당되지만 띄어쓰기가 있으면 내부적인 개행 처리 때문에 아래처럼 균등하지는 않게끔 배치됨struct ContentView: View { var body: some View { HStack { Text("This is a moder..
iOS 응용 (SwiftUI)
2024. 12. 17. 01:30