Latest 0.1.1
Homepage https://github.com/grawson/GRCustomAlert
License MIT
Platforms ios 8.3, requires ARC
Authors

CI Status
Version
License
Platform

Screenshot

Custom iOS Alert

Usage

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

//initialize the custom view controller
let vc = CustomAlertViewController()

//Customize alert properties here

//add the view controller and view
addChildViewController(vc)
view.addSubview(vc.view)

Customization

//Text
vc.alert.titleText =           //title text
vc.alert.messageText =         //message text
vc.alert.titleFont =           //title font
vc.alert.messageFont =         //message font

//Colors
vc.alert.viewColor =           //background color of the alert
vc.alert.accentColor =         //color of text and exclamation mark

//Frame
vc.alert.frameWidth =          //width of the alert view
vc.alert.contentHeight =       //height of the alert view
vc.alert.offset =              //Open space between the content and the button
vc.alert.actionHeight =        //height of the button
vc.alert.rounded =             //radius of button's rounded corners

//Animation
vc.alert.animation =           //Animation type for presentation and dismissal of alert

Installation

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

pod "GRCustomAlert"

Author

Gavi Rawson, [email protected]

License

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

Latest podspec

{
    "name": "GRCustomAlert",
    "version": "0.1.1",
    "summary": "Customizable alert for iOS.",
    "homepage": "https://github.com/grawson/GRCustomAlert",
    "license": "MIT",
    "authors": {
        "grawson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/grawson/GRCustomAlert.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.3"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "GRCustomAlert": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This