ReactiveUIKit 2.0.1

ReactiveUIKit 2.0.1

测试测试
语言语言 SwiftSwift
许可 MIT
发布上次发布2016年5月
SPM支持 SPM

Srdan Rasic 维护。



  • Srdan Rasic

ReactiveUIKit 是 ReactiveKit 集合框架之一,它通过绑定扩展了 UIKit 对象。请查阅 ReactiveKit 文档 了解如何使用它提供的属性。

所有扩展都以前缀 r 开头,因此您可以在工作时动态学习它们。只需在 UIKit 对象的实例上开始键入 .r,即可查看可用的内容。

ReactiveUIKit 支持 iOS 和 tvOS。

extension UILabel {
  public var rText: Property<String?>
  public var rAttributedText: Property<NSAttributedString?>
  public var rTextColor: Property<UIColor?>
}
extension UITextView {
  public var rText: Property<String?>
  public var rAttributedText: Property<NSAttributedString?>
  public var rTextColor: Property<UIColor?>
}
extension UITextField {
  public var rText: Property<String?>
  public var rAttributedText: Property<NSAttributedString?>
  public var rTextColor: Property<UIColor?>
}
extension UIImageView {
  public var rImage: Property<UIImage?>
}
extension UINavigationItem {
  public var rTitle: Property<String?>
}
extension UIProgressView {
  public var rProgress: Property<Float>
}
extension UIBarItem {
public var rTitle: Property<String?>
public var rImage: Property<UIImage?>
public var rEnabled: Property<Bool>
}
extension UIBarButtonItem {
public var rTap: Stream<Void>
}
extension UIActivityIndicatorView {
  public var rAnimating: Property<Bool>
}
extension UISlider {
  public var rValue: Property<Float>
}
extension UIRefreshControl {
  public var rRefreshing: Property<Bool>
}
extension UISwitch {
  public var rOn: Property<Bool>
}
extension UISegmentedControl {
  public var rSelectedSegmentIndex: Property<Int>
}
extension UIRefreshControl {
  public var rRefreshing: Property<Bool>
}
extension UIDatePicker {
  public var rDate: Property<NSDate>
}
extension UIButton {
  public var rTitle: Property<String?>
  public var rTap: Stream<Void>
  public var rSelected: Property<Bool>
  public var rHighlighted: Property<Bool>
}
extension UIControl {
  public var rControlEvent: Stream<UIControlEvents>
  public var rEnabled: Property<Bool>
}
extension UIView {
  public var rAlpha: Property<CGFloat>
  public var rBackgroundColor: Property<UIColor?>
  public var rHidden: Property<Bool>
  public var rUserInteractionEnabled: Property<Bool>
  public var rTintColor: Property<UIColor?>
}
extension PropertyCollectionType {
  public func bindTo(tableView: UITableView, createCell: (NSIndexPath, PropertyCollection<Collection>, UITableView) -> UITableViewCell) -> Disposable
}
extension PropertyCollectionType {
  public func bindTo(collectionView: UICollectionView, createCell: (NSIndexPath, PropertyCollection<Collection>, UICollectionView) -> UICollectionViewCell) -> Disposable
}

安装

许可

MIT 许可证 (MIT)

版权所有 (c) 2015-2016 Srdan Rasic (@srdanrasic)

特此授予任何获得本软件及随附文档副本(“软件”)的人免费使用的权利,包括但不限于使用的权利、复制的权利、修改的权利、合并的权利、发布的权利、分发权利、再许可的权利以及出售副本的权利,以及允许向提供软件的人进行以上操作的权利,前提是遵守以下条件

上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。

本软件按“原样”提供,不提供任何明示或暗示的保证,包括但不限于对适销性、适用于特定目的和无侵权的保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任承担责任,无论此类责任是由于合同、侵权或其他方式引起的,也不论此类责任是否与本软件或其使用或其它处置有关。