Add UIScrollView.rx_scrollEnabled
This commit is contained in:
parent
e26bce70af
commit
e291bff0f0
|
|
@ -46,7 +46,16 @@ extension UIScrollView {
|
|||
|
||||
return ControlProperty(values: proxy.contentOffsetSubject, valueSink: bindingObserver)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Bindable sink for `scrollEnabled` property.
|
||||
*/
|
||||
public var rx_scrollEnabled: AnyObserver<Bool> {
|
||||
return UIBindingObserver(UIElement: self) { scrollView, scrollEnabled in
|
||||
scrollView.scrollEnabled = scrollEnabled
|
||||
}.asObserver()
|
||||
}
|
||||
|
||||
/**
|
||||
Installs delegate as forwarding delegate on `rx_delegate`.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue