mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
26 lines
471 B
Swift
26 lines
471 B
Swift
//
|
|
// UIProgressView+Rx.swift
|
|
// RxCocoa
|
|
//
|
|
// Created by Samuel Bae on 2/27/16.
|
|
// Copyright © 2016 Krunoslav Zaher. All rights reserved.
|
|
//
|
|
|
|
#if os(iOS) || os(tvOS)
|
|
|
|
import RxSwift
|
|
import UIKit
|
|
|
|
extension Reactive where Base: UIProgressView {
|
|
|
|
/// Bindable sink for `progress` property
|
|
public var progress: Binder<Float> {
|
|
return Binder(self.base) { progressView, progress in
|
|
progressView.progress = progress
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|