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
- Clean Code
- UICollectionView
- Human interface guide
- collectionview
- 리펙토링
- swiftUI
- combine
- 애니메이션
- swift documentation
- 리팩토링
- map
- 리펙터링
- Protocol
- uiscrollview
- Xcode
- UITextView
- rxswift
- HIG
- RxCocoa
- SWIFT
- ios
- Observable
- ribs
- uitableview
- 스위프트
- clean architecture
- tableView
- Refactoring
- 클린 코드
- MVVM
Archives
- Today
- Total
목록2024/01/23 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] CustomStringConvertible 개념 (#description, #print 커스텀, #String(describing))
CustomStringConvertible 개념 해당 프로토콜을 준수하는 인스턴스에 설명을 붙일 수 있는데 여기에 사용되는 것 프로토콜을 보면 description 하나만 프로퍼티만 소유 public protocol CustomStringConvertible { var description: String { get } } print를 사용할때 내부적으로 이 description을 읽어서 print하는 것 enum A { case a case b } print(A.a) // "a" 만약 A에다가 CustomStringConvertible을 준수하면, description에 정의한 값으로 반환됨 enum A: CustomStringConvertible { case a case b var description..
iOS 응용 (swift)
2024. 1. 23. 01:07