Latest 1.0.0
Homepage https://github.com/adrum/tvalert
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

preview

Usage

TVAlert’s usage is the same as UIAlertController. Just replace UI with TV on both UIAlertController and UIAlertAction

let alertController = TVAlertController(title: "Title", message: "Message", preferredStyle: .alert)

alertController.style = style

let OKAction = TVAlertAction(title: "OK", style: .default) { (action) in
// ...
}
alertController.addAction(OKAction)

let cancelAction = TVAlertAction(title: "Cancel", style: .cancel) { (action) in
// ...
}
alertController.addAction(cancelAction)

self.present(alertController, animated: true) {
// ...
}

Requirements

Installation

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

pod "TVAlert"

Author

Austin Drummond, [email protected]

License

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

Latest podspec

{
    "name": "TVAlert",
    "version": "1.0.0",
    "summary": "tvOS style alerts.",
    "description": "A UIAlertController style library that mimics tvOS alerts.",
    "homepage": "https://github.com/adrum/tvalert",
    "license": "MIT",
    "authors": {
        "Austin Drummond": "[email protected]"
    },
    "source": {
        "git": "https://github.com/adrum/tvalert.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/adrummond7",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This