로딩
요청 처리 중입니다...

[SwiftUI] Combine, combineLatest

 [SwiftUI] Combine, combineLatest

오늘은 두가지 이상의 Publisher 들을 연동시킬수 있는 메소드인 combineLatest 를 사용해보겠습니다. Combine은 UIKit 에서도 사용 가능하지만 역시 스유와 찰떡이니 스유 카테고리에 넣는게 좋을 것 같습니다.

먼저 애플 공식문서를 보겠습니다. https://developer.apple.com/documentation/combine/publishers/concatenate/combinelatest(_:)/ combineLatest(_:) | Apple Developer Documentation Subscribes to an additional publisher and publishes a tuple upon receiving output from either publisher. developer.apple.com 정의를 보시면 추가 퍼블리셔를 구독하고 두 퍼블리셔로부터 출력을 받으면 튜플로 나온다. 이렇게 되어있는데 전 처음에보고 좀 먼소린가 했네요.

먼가 이 공...