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
- 클린 코드
- Observable
- rxswift
- clean architecture
- map
- MVVM
- Clean Code
- 리펙토링
- 애니메이션
- uitableview
- SWIFT
- UICollectionView
- 리펙터링
- RxCocoa
- Human interface guide
- 리팩토링
- collectionview
- swift documentation
- uiscrollview
- Protocol
- tableView
- ribs
- swiftUI
- Refactoring
- Xcode
- combine
- ios
- 스위프트
- HIG
- UITextView
Archives
- Today
- Total
목록Enum 초기화 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] Enum에서 초기화하는 테크닉 (~= 연산자)
* Enum에 Equatable 프로토콜을 준수하여 만드는 방법) https://ios-development.tistory.com/348 Enum에 ~= 연산자 사용하여 init 만들기 일반적인 경우, enum은 String을 준수하여 rawValue로 초기화가 가능 enum NamePrefix: String { case kim case lee case park } (rawValue로 초기화) let namePrefix = NamePrefix(rawValue: "kim") print(namePrefix) // Optional(ExEnum.NamePrefix.kim) ~= 연산자를 사용하면, 손쉽게 equatable 속성으로 만들기가 용이 static으로 ~= 연산자를 정의 failable init으로 초..
iOS 응용 (swift)
2022. 5. 9. 22:31