Slide 32
Slide 32 text
ProgressView+Rx (Ұ෦ൈਮ)
extension Reactive where Base: ProgressView {
var delegate: DelegateProxy {
return RxTabBarDelegateProxy.proxyForObject(base)
}
var animationDidStart: ControlEvent {
let source =
delegate.methodInvoked(#selector(ProgressViewDelegate.animationDidStart))
.map { a in
return try castOrThrow(UITabBarItem.self, a[1])
}
return ControlEvent(events: source)
}
var animationDidFinish: ControlEvent {
let source =
delegate.methodInvoked(#selector(ProgressViewDelegate.animationDidFinish))
.map { a in
return try castOrThrow(UITabBarItem.self, a[1])
}
return ControlEvent(events: source)
}
}