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
- 리펙터링
- 리팩토링
- ios
- SWIFT
- clean architecture
- tableView
- uitableview
- 리펙토링
- combine
- UICollectionView
- uiscrollview
- 클린 코드
- swift documentation
- MVVM
- Xcode
- Clean Code
- ribs
- 스위프트
- swiftUI
- Refactoring
- RxCocoa
- Human interface guide
- map
- Protocol
- rxswift
- collectionview
- UITextView
- HIG
- 애니메이션
- Observable
Archives
- Today
- Total
목록2025/03/12 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - SwiftUI] 뷰 주입받는 방법 (Generics, AnyView)
뷰 주입받는 방법 3가지 특성단점 1. generics최적화 유지, 타입 안전뷰 타입이 고정됨⭐ 추천2. AnyView동적 뷰 변경 가능성능 저하 가능성⚠️ 가능하면 피할 것1. generics 방법View를 준수하는 타입으로 한정하여, 제네릭을 선언하는 방식최적화가 유지되는 장점// 주입받은 뷰를 표시하는 컨테이너struct ContainerView: View { let content: Content var body: some View { VStack { Text("현재 뷰") .font(.headline) content } .padding() .background(Color...
iOS 응용 (SwiftUI)
2025. 3. 12. 01:13