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
- 클린 코드
- Observable
- ribs
- collectionview
- 애니메이션
- UICollectionView
- ios
- uiscrollview
- 스위프트
- Protocol
- tableView
- rxswift
- Clean Code
- uitableview
- HIG
- clean architecture
- Human interface guide
- 리팩토링
- map
- swift documentation
- Xcode
- SWIFT
- 리펙토링
- combine
- swiftUI
- RxCocoa
- MVVM
- Refactoring
- scrollview
- UITextView
Archives
- Today
- Total
목록tryDrop (1)
김종권의 iOS 앱 개발 알아가기
[iOS - SwiftUI] Combine Sequence 연산자 (drop, dropFirst, tryDrop, append, prepend, prefix, tryPrefix)
목차) Combine - 목차 링크 Sequence 연산자 drop(while:) 일반 while (condition) { body } 과 동일 while 안에 조건이 true일때만 값을 drop [1,3,5,7,8,9]가 있을때 1, 3, 5, 7 까지 계속 홀수이므로 while문 내부가 true이므로 모두 drop 8에서 while문이 false이므로 while문이 break while문이 break되었으므로 9는 방출 [1,3,5,7,8,9].publisher .drop(while: { $0 % 2 != 0 }) .sink { print($0, terminator: " ") } // 8 9 dropFirst() 첫번째 요소만 drop [1,2,3,4,5].publisher .dropFirst() ...
iOS Combine (SwiftUI)
2022. 11. 11. 22:00