Combinative
Combinative is library for UI event handling using Apple's combine framework. It not need some big dependencies because using built in framework. And, You can use great apple's combine operators with UIKit.
Usage
UIButton
let button = UIButton()
button.cmb.tap.sink { (button) in
// do something
}
UITextField
@IBOutlet weak var textField: UITextField!
textField.cmb.text.sink { (text) in
print(text)
}
Requirements
Xcode Beta 11.0
Swift 5.1
iOS13+
Installation
Swift Package Manager
Combinative is available through Swift Package Manager. To install
it, simply add the following line to your Package.swift:
let package = Package(
dependencies: [
.package(url: "https://github.com/noppefoxwolf/Combinative.git", branch: "master"),
],
)