Swiftpack.co - Swifteroid/Rex as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Swifteroid.
Swifteroid/Rex 1.0.2
Reactive Swift & Cocoa extensions 🦖
⭐️ 1
🕓 51 weeks ago
macOS
.package(url: "https://github.com/Swifteroid/Rex.git", from: "1.0.2")

Rex 🦖

ReactiveSwift and ReactiveCocoa extensions and utilities.

API Guidelines

These guidelines aim at improving consistency and intuitiveness of reactive API design.

Signal Naming

While ReactiveSwift and ReactiveCocoa tend to use past sense for naming signal events, like Life.ended or Action.completed, Apple prefers emphatic form, like NSView.didHide or AVCaptureSessionDidStartRunning, complimented by auxiliary verbs (will, did, was). Moreover, Swift also uses emphatic form in the language itself, like willSet and didSet property observers, so it's safe to assume that this is the overall convention at Apple. Hence, events should use emphatic naming form with auxiliary verbs and follow established Apple's convention as closely as possible.

extension Reactive {
    var willAppear: Signal<…>
    var didAppear: Signal<…>
}

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