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
- SWIFT
- Xcode
- 리펙토링
- uitableview
- 리팩토링
- 리펙터링
- tableView
- ribs
- 애니메이션
- UICollectionView
- rxswift
- MVVM
- uiscrollview
- swift documentation
- Refactoring
- clean architecture
- map
- Observable
- combine
- collectionview
- Protocol
- Human interface guide
- swiftUI
- Clean Code
- 클린 코드
- ios
- 스위프트
- RxCocoa
- UITextView
- HIG
Archives
- Today
- Total
목록2024/03/22 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] protocol을 준수하는 1회용 모델 생성 팁 (protocol 구현체)
protocol 준수하는 모델 넘기기 ViewController에서 viewModel로 SomeModelable을 준수하는 모델을 넘겨야 하는 경우? 단, SomeModelable을 준수하는 모델은 여기서밖에 사용하지 않음 protocol SomeModelable { var a: Int { get } var b: String { get } } class ViewController: UIViewController { let viewModel = ViewModel() override func viewDidLoad() { super.viewDidLoad() viewModel.configure(model: /*여기!*/) } } class ViewModel { func configure(model: SomeMo..
Refactoring (리펙토링)
2024. 3. 22. 01:39