Latest 0.1
Homepage https://github.com/FutureXCommunity/CocoaFx
License MIT
Platforms ios 9.0, watchos 2.0, osx 10.11, tvos 9.0
Dependencies FutureX

CocoaFxCocoaFxCocoaFx

A set of future extensions for Apple native frameworks.

Foundation

URLSession

let user: Future<User, Error> = URLSession.shared.fx.object(for: url)

// With cancellation
let cts = CancellationTokenSource()
let data: Future<Data, Error> = URLSession.shared.fx.data(for: url, token: cts.token)

NSObject

view.fx.deallocated.on(success: {
    print("view got deallocated")
})

Requirements

  • iOS 9.0 / watchOS 2.0 / OS X 10.11 / tvOS 9.0
  • Xcode 10
  • Swift 4.2

License

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

Latest podspec

{
    "name": "CocoaFx",
    "version": "0.1",
    "summary": "Future extensions for Apple native frameworks",
    "homepage": "https://github.com/FutureXCommunity/CocoaFx",
    "license": "MIT",
    "authors": "Alexander Grebenyuk",
    "social_media_url": "https://twitter.com/a_grebenyuk",
    "source": {
        "git": "https://github.com/FutureXCommunity/CocoaFx.git",
        "tag": "0.1"
    },
    "platforms": {
        "ios": "9.0",
        "watchos": "2.0",
        "osx": "10.11",
        "tvos": "9.0"
    },
    "source_files": "Sources/**/*",
    "dependencies": {
        "FutureX": [
            "~> 0.15"
        ]
    }
}

Pin It on Pinterest

Share This