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
- combine
- SWIFT
- 클린 코드
- Refactoring
- 애니메이션
- 리펙터링
- UICollectionView
- 리펙토링
- rxswift
- Observable
- Clean Code
- map
- RxCocoa
- swiftUI
- 스위프트
- 리팩토링
- HIG
- ribs
- MVVM
- tableView
- collectionview
- uiscrollview
- Xcode
- Human interface guide
- clean architecture
- uitableview
- Protocol
- ios
- UITextView
- swift documentation
Archives
- Today
- Total
목록object 출력 커스텀 (1)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bhAGGw/btsDLMaUJkM/KcXBe7DH1gALX1EjBxcyV0/img.png)
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