Skip to content
UI event handling using Apple's combine framework.
Swift
Branch: master
Clone or download
Latest commit 802ac0a Jul 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update README.md Jul 17, 2019
Example Update example Jul 9, 2019
Sources/Combinative Support Gesture Jun 29, 2019
Tests support uitextfield Jun 28, 2019
.gitignore Add Example Jul 8, 2019
Package.swift platform対応 Jun 27, 2019

README.md

Combinative

Description

Combinative is a library for UI event handling using Apple's combine framework. It doesn't need many dependencies because it is written mainly using built-in framework. By using this library, You can use great apple's combine-framework 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"),
  ],
)

Author

Contributing

We would love you to contribute to Combinative, check the CONTRIBUTING file for more info.

License

Combinative is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.