Swiftpack.co - AckeeCZ/ACKReactiveExtensions as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by AckeeCZ.
AckeeCZ/ACKReactiveExtensions 7.1.0
Set of useful extensions for ReactiveSwift & ReactiveCocoa
⭐️ 17
🕓 4 weeks ago
.package(url: "https://github.com/AckeeCZ/ACKReactiveExtensions.git", from: "7.1.0")




ACKReactiveExtensions is set of useful extensions for ReactiveCocoa you could use in your apps.

Currently we have extensions for

  • UIKit
  • WebKit

If you'd love to have more extensions available just open an issue or even better create a pull request!


You can use Carthage by adding it to your Cartfile:

github "AckeeCZ/ACKReactiveExtensions

Or you can use SPM by adding it to you Package.swift.


Usage is really simple, ACKReactiveExtensions contains just more extensions for ReactiveSwift's Reactive struct so it can be used on more objects.

Mapping configuration

In general we are against mapping objects on main thread (and you should be too), but you know, you only live once so we still give you the opportunity to do so. By default our mapping extensions allow this behavior but if you want to restrict that, you can do that by setting a configuration variable.

ACKReactiveExtensionsConfiguration.allowMappingOnMainThread = false

From now on the mapping extensions will expect to be called on background thread, but don't worry, we use asserts so your production users are safe from crashing if somehow things don't go as good as expected.

UITextField/UITextView two way binding

ACKReactiveExtensions contains special <~> two way binding operator which will create binding between MutableProperty and your UITextField/UITextView.

Until now all those bindings looked like this

let textProperty: MutableProperty<String?> ...
let textField: UITextField ...

textField.reactive.text <~ textProperty
textProperty <~ textField.reactive.continousTextValues

From now on you can use the <~> operator

textProperty <~> textField

The <~> operator is commutative so the order of operands doesn't matter.


Ackee team


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


Stars: 17
Last commit: 3 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

4 weeks ago
  • add extensions for running async operations as SignalProducer (#64, kudos to @olejnjak)
  • remove default JSONDecoder for decode extension (#65, kudos to @olejnjak)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics