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
- 클린 코드
- UICollectionView
- Refactoring
- Observable
- 리펙터링
- swift documentation
- RxCocoa
- 스위프트
- swiftUI
- uitableview
- HIG
- 리팩토링
- collectionview
- ribs
- Human interface guide
- Xcode
- uiscrollview
- 리펙토링
- tableView
- SWIFT
- clean architecture
- Clean Code
- rxswift
- 애니메이션
- combine
- MVVM
- ios
- Protocol
- UITextView
- map
Archives
- Today
- Total
목록StoryboardInstantiable (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 코드로 xib파일을 얻는 Protocol 정의 (StoryboardInstantiable)
아이디어 각 ViewController들은 해당 protocol들을 상속 받아서, Builder에서 해당 ViewController를 초기화 할때 정의된 함수 호출 StoryboardInstaiable 프로토콜 정의 public protocol StoryboardInstantiable { associatedtype ViewControllerType static var defaultFileName: String { get } static func instantiateViewController(_ bundle: Bundle?) -> ViewControllerType } default implementation 클래스의 이름을 얻기 위해 NSStringFromClass() 사용 class 타입을 받아서 그 ..
iOS 응용 (swift)
2021. 7. 11. 01:23