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 |
Tags
- tableView
- MVVM
- Refactoring
- 리팩토링
- swift documentation
- ribs
- clean architecture
- UICollectionView
- Xcode
- Clean Code
- rxswift
- 클린 코드
- Observable
- HIG
- Human interface guide
- swiftUI
- uiscrollview
- uitableview
- Protocol
- RxCocoa
- ios
- SWIFT
- 리펙터링
- 애니메이션
- combine
- map
- 리펙토링
- 스위프트
- collectionview
- UITextView
Archives
- Today
- Total
목록localizedDescription (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] Error, LocalizedError, localizedDescription 개념
LocalizedError 오류에 대한 발생 이유를 설명하는 오류 프로토콜 해당 프로토콜을 준수하고, computed property인 `public var errorDescription: String?`를 정의하면, 사용하는쪽에서 .localiedDescription사용이 가능 localizedDescription error의 코멘트 역할 LoclizedDescription 활용 방법 Error를 준수하는 타입 정의 enum RegisterError: Error { case invalidEmail case invalidPhoneNumber } 디폴트 localizedDescription는 "The Operation couldn't be completed (...)" print(RegisterError..
iOS 기본 (swift)
2022. 1. 18. 23:45