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
- Refactoring
- HIG
- ribs
- uiscrollview
- tableView
- clean architecture
- 스위프트
- combine
- RxCocoa
- rxswift
- 클린 코드
- MVVM
- 리팩토링
- swift documentation
- swiftUI
- Protocol
- 리펙토링
- uitableview
- Xcode
- 애니메이션
- map
- collectionview
- Observable
- Human interface guide
- SWIFT
- 리펙터링
- ios
- UICollectionView
- Clean Code
- UITextView
Archives
- Today
- Total
목록Collection (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] allSatisfy 연산자 (Collection, Sequence 개념)
allSatisfy 연산자 Collection의 모든 요소가 특정 조건을 만족시키는지 알고 싶은 경우 사용 ex) 배열을 순회하면서 원소들이 특정 조건을 모두 만족하는지 확인할 때 사용 Array, Dictionary, Set 타입에 사용 let arr = ["abcdef", "12345", "문자열"] let bool = arr.allSatisfy { $0.count > 2 } print(bool) // true let dict = ["1": 1, "2": 2] let bool2 = dict.allSatisfy { $0.key == String($0.value) } print(bool2) // true var set = Set() set.insert(2) set.insert(4) set.insert(6..
iOS 기본 (swift)
2022. 4. 23. 22:57