Latest 0.0.6
Homepage https://github.com/skyline75489/JLAlertView
License MIT
Platforms ios 9.0
Authors

Swift 2.2
License MIT
Build Status
Carthage compatible

An UIAlertView replacement written in Swift with a modern chainable API and highly customizable UI, inspired by SIAlertView and SweetAlert-iOS.

Screenshot

screenshot

Requirements

  • iOS 9.0 and higher
  • Xcode 7.3(Swift 2.2)

Installation

CocoaPods(Recommended)

pod 'JLAlertView'

use_frameworks!

Carthage

JLAlertView is compatible with Carthage. Add this to you Cartfile:

github "skyline75489/JLAlertView"

Manually

Add JLAlertView.swift in your project.

Usage

JLAlertView(title: "Default Style", message: "Standard Alert")
.addTextFieldWithConfigurationHandler({ (textField) in
    textField.placeholder = "Username"
})
.addTextFieldWithConfigurationHandler({ (textField) in
    textField.placeholder = "Password"
})
.addButttonWithTitle("Cancel", style: .Cancel, action: nil)
.addButttonWithTitle("OK", action:{(title, alert) in
    let username = alert.textFields[0].text
    let password = alert.textFields[1].text
    print(username)
    print(password)
})
.show()

License

MIT License

Latest podspec

{
    "name": "JLAlertView",
    "version": "0.0.6",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "summary": "An UIAlertView replacement with a modern chainable API, written in Swift 2.2",
    "homepage": "https://github.com/skyline75489/JLAlertView",
    "authors": {
        "Chester Liu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/skyline75489/JLAlertView.git",
        "tag": "0.0.6"
    },
    "source_files": "Classes/*",
    "platforms": {
        "ios": "9.0"
    }
}

Pin It on Pinterest

Share This