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
- Xcode
- Observable
- RxCocoa
- collectionview
- UITextView
- rxswift
- 리팩토링
- uiscrollview
- 리펙터링
- Clean Code
- tableView
- Refactoring
- combine
- HIG
- 애니메이션
- Human interface guide
- map
- Protocol
- 스위프트
- clean architecture
- SWIFT
- uitableview
- swiftUI
- swift documentation
- UICollectionView
- ios
- 리펙토링
- 클린 코드
- MVVM
- ribs
Archives
- Today
- Total
목록2022/07/29 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swiftUI] View Protocol (뷰 프로토콜)
목차) SwiftUI의 기본 - 목차 링크 View Protocol View 프로토콜 프로토콜이고, body라는 computed property를 가지고 있는 타입 view를 입력할 수 있게하는 인터페이스를 제공하는 역할 @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) public protocol View { associatedtype Body : View @ViewBuilder var body: Self.Body { get } } @ViewBuilder @resultBuilder를 사용하여 정의한 struct 형 @resultBuilder는 swift5.4에서부터 나온 api이며, 개념은 이전 포스팅 글 참고 (@resultBuilder를 사..
iOS 기본 (SwiftUI)
2022. 7. 29. 21:53