Latest 0.1.0
Homepage https://github.com/trilliwon/ifAction
License MIT
Platforms ios 8.0, osx 10.9, tvos 9.0
Authors

Swift
CI Status
codecov
Version
License

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

let name: String? = "Steve"
name.ifSome { print("His name is ($0).") }

let name: String? = nil
name.ifNone { print("Unknown name.") }

var isEnable = true
isEnable.ifTrue ( print("button was enabled.") )

var isEnable = false
isEnable.ifFalse ( print("button was disabled.") )

Requirements

  • Swift 3.0

Installation

ifAction is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ifAction"

Author

trilliwon, [email protected]

License

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

Latest podspec

{
    "name": "ifAction",
    "version": "0.1.0",
    "summary": "ifAction is gorgeous syntactic sugar.",
    "description": "Using ifAction, checking optional or boolean can be easier than before.",
    "homepage": "https://github.com/trilliwon/ifAction",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "trilliwon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/trilliwon/ifAction.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "tvos": "9.0"
    },
    "source_files": "ifAction/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This