Slide 39
Slide 39 text
$PPLQBE*OD
©︎
ॳճઃఆঢ়گʹԠͨ͡ભҠ
Ϣʔβʔঢ়ଶෳܦ࿏͔Βͷྲྀೖʹରͯ͠׆༻Ͱ͖ΔΈ
private let deferredDeepLinkCheckpoint = PublishSubject()
private let deferredDeepLinkSubject: ReplaySubject
func didFinishTutorial() {
deferredDeepLinkCheckpoint.onNext(())
}
private func setUpDeferredDeepLinkCheckpoint() {
Observable
.combineLatest(
deferredDeepLinkSubject,
deferredDeepLinkCheckpoint
) { deepLink, _ in deepLink }
.take(1)
.subscribe(onNext: { [environment] deepLink in
// σΟϑΝʔυσΟʔϓϦϯΫͷભҠॲཧ
}, onCompleted: { [weak self] in
guard let strongSelf = self else { return }
strongSelf.deferredDeepLinkSubject.onCompleted()
strongSelf.deferredDeepLinkCheckpoint.onCompleted()
})
.disposed(by: disposeBag)
}