DOAlertController 1.0.0

DOAlertController 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2015
SPMSupports SPM

Maintained by okmr-d.




  • By
  • Daiki Okumura

DOAlertController

Simple Alert View written in Swift, which can be used as a UIAlertController replacement.
It supports from iOS7! It is simple and easily customizable!

BackgroundImage BackgroundImage

Easy to use

DOAlertController can be used as a UIAlertController.

// Set title, message and alert style
let alertController = DOAlertController(title: "title", message: "message", preferredStyle: .Alert)

// Create the action.
let cancelAction = DOAlertAction(title: "OK", style: .Cancel) { action in
    NSLog("The simple alert's cancel action occured.")
}

// Add the action.
alertController.addAction(cancelAction)

presentViewController(alertController, animated: true, completion: nil)

Customize

see DOAlertController-DEMO for details

  • change Fonts
  • change color (Background, View, Buttons)
  • add TextField (Alert style only)

BackgroundImage BackgroundImage

Installation

DOAlertController is available through CocoaPods.

To install add the following line to your Podfile:

pod 'DOAlertController'

License

This software is released under the MIT License, see LICENSE.txt.