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
- Xcode
- MVVM
- HIG
- 리팩토링
- Refactoring
- Human interface guide
- 리펙터링
- SWIFT
- RxCocoa
- combine
- uitableview
- swift documentation
- 리펙토링
- UICollectionView
- Observable
- UITextView
- uiscrollview
- Protocol
- 애니메이션
- clean architecture
- rxswift
- map
- ribs
- 클린 코드
- collectionview
- swiftUI
- 스위프트
- ios
- Clean Code
- tableView
Archives
- Today
- Total
목록rauvalue (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] enum 사용 방법 (String -> enum 매핑, 타입 사용 방법)
기본형 단순 타입 구분 (내부적으로 타입 구분용도) enum urlType { case naver case google } 타입을 추가한 형태 값을 명시하지 않으면 (google) 자동으로 타입의 이름으로 매핑됨 enum urlType: String { case naver = "Naver" case google // "google"로 매핑 } String의 값을 enum값으로 매핑시키는 방법 (예시) response로 문자열을 받은 경우, 문자열을 enum으로 매핑할때 필요) let googleUrl = "google" if let urlType = UrlType(rawValue: googleUrl) { // case문에 없으면 nil로 매핑됨 switch urlType { case .naver: rou..
iOS 기본 (swift)
2021. 1. 13. 22:18