// // UIProgressView+Rx.swift // Rx // // Created by Samuel Bae on 2/27/16. // Copyright © 2016 Krunoslav Zaher. All rights reserved. // #if os(iOS) || os(tvOS) import Foundation #if !RX_NO_MODULE import RxSwift #endif import UIKit extension Reactive where Base: UIProgressView { /** Bindable sink for `progress` property */ public var progress: AnyObserver { return UIBindingObserver(UIElement: self.base) { progressView, progress in progressView.progress = progress }.asObserver() } } #endif