Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rx_animating extension for NVActivityIndicatorView
extension NVActivityIndicatorView {
public var rx_animating: AnyObserver<Bool> {
return UIBindingObserver(UIElement: self) { indicator, animating in
if (animating) {
indicator.startAnimation()
} else {
indicator.stopAnimation()
}
}.asObserver()
}
}
@mariojuni

This comment has been minimized.

Copy link

mariojuni commented Feb 1, 2019

How to apply this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.