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
- UITextView
- Protocol
- 리펙터링
- 스위프트
- uitableview
- tableView
- Refactoring
- swiftUI
- ios
- map
- Human interface guide
- combine
- Observable
- 애니메이션
- 리팩토링
- rxswift
- collectionview
- clean architecture
- UICollectionView
- swift documentation
- Clean Code
- ribs
- 리펙토링
- 클린 코드
- uiscrollview
- MVVM
- SWIFT
- RxCocoa
- HIG
- Xcode
Archives
- Today
- Total
목록OptionSet (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] OptionSet 개념 (enum case + set)
OptionSet 개념 enum-case의 case와 같이 사용할 수 있고 동시에 set 연산자인 insert, remove 등도 사용할 수 있는 API OptionSet 프로토콜 형태 SetAlgebra는 set의 연산자를 정의해놓은 프로토콜 public protocol OptionSet : RawRepresentable, SetAlgebra { associatedtype Element = Self init(rawValue: Self.RawValue) } SetAlgebra 형태 /// - `S() == []` /// - `x.intersection(x) == x` /// - `x.intersection([]) == []` /// - `x.union(x) == x` /// - `x.union([]) =..
iOS 응용 (swift)
2023. 8. 15. 00:11