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
- ribs
- Observable
- map
- uitableview
- 리펙토링
- MVVM
- clean architecture
- rxswift
- swift documentation
- 리팩토링
- combine
- SWIFT
- tableView
- Clean Code
- 스위프트
- 리펙터링
- 클린 코드
- swiftUI
- collectionview
- uiscrollview
- Protocol
- 애니메이션
- UITextView
- UICollectionView
- HIG
- Human interface guide
- RxCocoa
- ios
- Xcode
- Refactoring
Archives
- Today
- Total
목록if case let (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] if case let, guard case let
switch문을 if, guard 문으로 바꾼 것 switch문은 "=" 앞에 타입(case)을 명시하지만, if case let, guard case let문은 "=" 앞에 값을 명시 enum 정의 enum Person { case name(String) case age(Int) } switch 문 switch person { case .name(let nameValue): print(nameValue) case .age(let ageValue): print(ageValue) } switch문 -> if case let // 앞에 case문 타입을 먼저 쓴 후 뒤에 값이 위치 if case let Person.name(nameValue) = person { print(nameValue) } switch..
iOS 기본 (swift)
2020. 12. 30. 21:18