/PCLBlurEffectAlert

Swift AlertController with UIVisualeffectview

Primary LanguageSwiftMIT LicenseMIT

PCLBlurEffectAlert

Swift AlertController, use UIVisualeffectview

Cocoapods Compatible Swift 3.0

Requirements

  • iOS 8.0+
  • Swift 3.0+
  • ARC

Feature

  • Change color
  • Change effect
  • Change font
  • Use UITextField

install

Cocoapods

Adding the following to your Podfile and running pod install:

use_frameworks!
pod "PCLBlurEffectAlert"

import

import PCLBlurEffectAlert

Usage

let alertController = PCLBlurEffectAlert.Controller(title: "title title title title title title title", message: nil, style: .alert)
let action1 = PCLBlurEffectAlert.AlertAction(title: "yes", style: .destructive, handler: { _ in  print("yes") })
alertController.addAction(action)

// customize
alertController.configure(cornerRadius: 20)
alertController.configure(buttonDisableTextColor: [.destructive: .red])
alertController.show()

Acknowledgements

##License

This project is made available under the MIT license. See LICENSE file for details.