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
- MVVM
- 리펙토링
- ios
- 클린 코드
- Human interface guide
- Xcode
- Refactoring
- collectionview
- 클로드코드
- UICollectionView
- 애니메이션
- Observable
- swiftUI
- combine
- swift documentation
- 스위프트
- clean architecture
- Protocol
- tableView
- uiscrollview
- HIG
- RxCocoa
- Clean Code
- map
- uitableview
- claude code
- UITextView
- 리팩토링
- SWIFT
- rxswift
Archives
- Today
- Total
목록layoutpriority (1)
김종권의 iOS 앱 개발 알아가기
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