[
  {
    "path": ".gitignore",
    "content": "# Mac\n.DS_Store\n\n# Xcode\nbuild/*\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\nprofile\n*.moved-aside\nDerivedData\n.idea/\n\n*.ipa\n*.app\n\n*.xccheckout\nsort-Xcode-project-file"
  },
  {
    "path": ".swift-version",
    "content": "3.0\n"
  },
  {
    "path": "Example/Example/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  Example\n//\n//  Created by yoshida hiroyuki on 2015/10/15.\n//  Copyright © 2015年 yoshida hiroyuki. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {\n        // Override point for customization after application launch.\n        return true\n    }\n\n    func applicationWillResignActive(_ application: UIApplication) {\n        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n    }\n\n    func applicationDidEnterBackground(_ application: UIApplication) {\n        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n    }\n\n    func applicationWillEnterForeground(_ application: UIApplication) {\n        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n    }\n\n    func applicationDidBecomeActive(_ application: UIApplication) {\n        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n    }\n\n    func applicationWillTerminate(_ application: UIApplication) {\n        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n    }\n\n\n}\n\n"
  },
  {
    "path": "Example/Example/Assets.swift",
    "content": "//\n//  Assets.swift\n//  Example\n//\n//  Created by yoshida hiroyuki on 2017/02/27.\n//  Copyright © 2017年 hiroyuki yoshida. All rights reserved.\n//\n\nimport UIKit\n\nstruct Assets {\n    static let image = Assets.Image.share\n    struct Image {\n        static let share: Assets.Image = Image()\n        var sample1: UIImage {\n            return UIImage(named: \"sample1\")!\n        }\n        var sample2: UIImage {\n            return UIImage(named: \"sample2\")!\n        }\n    }\n}\n"
  },
  {
    "path": "Example/Example/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"83.5x83.5\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Example/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Example/Assets.xcassets/sample1.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"recipes.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Example/Assets.xcassets/sample2.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"cat.jpg\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Example/Assets.xcassets/sampleBackground.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"PAKU160126410I9A5301-thumb-autox1600-21285.jpg\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Example/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11201\" systemVersion=\"16A323\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11161\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Llm-lL-Icb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xb3-aO-Qok\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"-337\" y=\"18\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "Example/Example/Base.lproj/MainViewController.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11762\" systemVersion=\"16D32\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <device id=\"retina4_7\" orientation=\"portrait\">\n        <adaptation id=\"fullscreen\"/>\n    </device>\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11757\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--Main View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController automaticallyAdjustsScrollViewInsets=\"NO\" id=\"BYZ-38-t0r\" customClass=\"MainViewController\" customModule=\"Example\" customModuleProvider=\"target\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <imageView clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"scaleAspectFill\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" image=\"sampleBackground\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Lf0-6h-j4A\">\n                                <rect key=\"frame\" x=\"137.5\" y=\"0.0\" width=\"100\" height=\"667\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"width\" constant=\"100\" id=\"Axo-Le-ewo\"/>\n                                </constraints>\n                            </imageView>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"VK3-wA-HIw\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"100\"/>\n                                <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"100\" id=\"Z9P-lH-Zic\"/>\n                                </constraints>\n                            </view>\n                            <segmentedControl opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"left\" contentVerticalAlignment=\"top\" segmentControlStyle=\"plain\" selectedSegmentIndex=\"0\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"b8G-F1-453\">\n                                <rect key=\"frame\" x=\"8\" y=\"17\" width=\"359\" height=\"29\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"28\" id=\"IfC-2F-JDi\"/>\n                                </constraints>\n                                <segments>\n                                    <segment title=\"Alert\"/>\n                                    <segment title=\"AlertVertical\"/>\n                                    <segment title=\"ActionSheet\"/>\n                                </segments>\n                            </segmentedControl>\n                            <segmentedControl opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"left\" contentVerticalAlignment=\"top\" segmentControlStyle=\"plain\" selectedSegmentIndex=\"0\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ho7-a3-lkY\">\n                                <rect key=\"frame\" x=\"8\" y=\"55\" width=\"359\" height=\"29\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"28\" id=\"tkI-T3-M2Z\"/>\n                                </constraints>\n                                <segments>\n                                    <segment title=\"ExtraLight\"/>\n                                    <segment title=\"Light\"/>\n                                    <segment title=\"Dark\"/>\n                                </segments>\n                            </segmentedControl>\n                            <tableView clipsSubviews=\"YES\" contentMode=\"scaleToFill\" alwaysBounceVertical=\"YES\" dataMode=\"prototypes\" style=\"plain\" separatorStyle=\"default\" rowHeight=\"100\" sectionHeaderHeight=\"28\" sectionFooterHeight=\"28\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5El-06-33n\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"100\" width=\"375\" height=\"567\"/>\n                                <color key=\"backgroundColor\" white=\"0.0\" alpha=\"0.0\" colorSpace=\"calibratedWhite\"/>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"BYZ-38-t0r\" id=\"tX5-Ih-v5I\"/>\n                                    <outlet property=\"delegate\" destination=\"BYZ-38-t0r\" id=\"zPS-82-KeQ\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                        <color key=\"backgroundColor\" red=\"0.75686274509999996\" green=\"0.1960784314\" blue=\"0.15686274510000001\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                        <constraints>\n                            <constraint firstItem=\"Lf0-6h-j4A\" firstAttribute=\"centerX\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"centerX\" id=\"2E8-Eu-cP9\"/>\n                            <constraint firstItem=\"Lf0-6h-j4A\" firstAttribute=\"top\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"top\" id=\"2jL-v9-ttl\"/>\n                            <constraint firstItem=\"VK3-wA-HIw\" firstAttribute=\"leading\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"leading\" id=\"6tq-Kf-gX1\"/>\n                            <constraint firstItem=\"b8G-F1-453\" firstAttribute=\"leading\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"leading\" constant=\"8\" id=\"745-uS-22L\"/>\n                            <constraint firstAttribute=\"trailing\" secondItem=\"VK3-wA-HIw\" secondAttribute=\"trailing\" id=\"Fen-w1-tjW\"/>\n                            <constraint firstItem=\"wfy-db-euE\" firstAttribute=\"top\" secondItem=\"Lf0-6h-j4A\" secondAttribute=\"bottom\" id=\"HjV-oP-bet\"/>\n                            <constraint firstItem=\"Ho7-a3-lkY\" firstAttribute=\"top\" secondItem=\"b8G-F1-453\" secondAttribute=\"bottom\" constant=\"10\" id=\"Sij-3w-WAF\"/>\n                            <constraint firstItem=\"wfy-db-euE\" firstAttribute=\"top\" secondItem=\"5El-06-33n\" secondAttribute=\"bottom\" id=\"Yah-Qo-HTT\"/>\n                            <constraint firstAttribute=\"trailing\" secondItem=\"Ho7-a3-lkY\" secondAttribute=\"trailing\" constant=\"8\" id=\"adQ-XY-qwK\"/>\n                            <constraint firstAttribute=\"trailing\" secondItem=\"b8G-F1-453\" secondAttribute=\"trailing\" constant=\"8\" id=\"eZU-IT-mBu\"/>\n                            <constraint firstItem=\"Ho7-a3-lkY\" firstAttribute=\"leading\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"leading\" constant=\"8\" id=\"h3c-Yk-iRZ\"/>\n                            <constraint firstItem=\"b8G-F1-453\" firstAttribute=\"top\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"top\" constant=\"17\" id=\"jKO-uh-ti6\"/>\n                            <constraint firstItem=\"VK3-wA-HIw\" firstAttribute=\"top\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"top\" id=\"jqD-42-hCv\"/>\n                            <constraint firstItem=\"5El-06-33n\" firstAttribute=\"leading\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"leading\" id=\"khc-A2-bXb\"/>\n                            <constraint firstItem=\"5El-06-33n\" firstAttribute=\"top\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"top\" constant=\"100\" id=\"mwa-Xh-Ruq\"/>\n                            <constraint firstAttribute=\"trailing\" secondItem=\"5El-06-33n\" secondAttribute=\"trailing\" id=\"oXC-Wb-SHt\"/>\n                        </constraints>\n                    </view>\n                    <navigationItem key=\"navigationItem\" id=\"9n1-jh-5Ja\"/>\n                    <connections>\n                        <outlet property=\"blurEffecrSegmentedControl\" destination=\"Ho7-a3-lkY\" id=\"meq-sq-lcd\"/>\n                        <outlet property=\"styleSegmentedControl\" destination=\"b8G-F1-453\" id=\"31G-Cx-7fe\"/>\n                        <outlet property=\"tableView\" destination=\"5El-06-33n\" id=\"DUc-Mx-Idw\"/>\n                    </connections>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"-1346\" y=\"75\"/>\n        </scene>\n    </scenes>\n    <resources>\n        <image name=\"sampleBackground\" width=\"1067\" height=\"1600\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "Example/Example/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>MainViewController</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "Example/Example/MainViewController.swift",
    "content": "//\n//  MainViewController.swift\n//  PCLAlertController\n//\n//  Created by yoshida hiroyuki on 2015/10/12.\n//  Copyright © 2015年 yoshida hiroyuki. All rights reserved.\n//\n\nimport UIKit\nimport PCLBlurEffectAlert\n\nfinal class MainViewController: UIViewController {\n    enum SampleRow: Int, CustomStringConvertible {\n        case oneButton = 0\n        case okCancel\n        case titleMessage\n        case buttonOnly\n        case colorful\n        case textField\n        case image\n        static var count: Int { return 7 }\n        var description: String {\n            switch self {\n            case .oneButton: return \"One button\"\n            case .okCancel: return \"OK / Cancel\"\n            case .titleMessage: return \"Has title and message\"\n            case .buttonOnly: return \"Button only\"\n            case .colorful: return \"Colorful\"\n            case .textField: return \"Has textFiled\"\n            case .image: return \"Has image\"\n            }\n        }\n    }\n    enum Segmented: Int {\n        case a = 0, b, c\n        var style: PCLBlurEffectAlert.ControllerStyle {\n            switch self {\n            case .a: return .alert\n            case .b: return .alertVertical\n            case .c: return .actionSheet\n            }\n        }\n        var effect: UIBlurEffect {\n            switch self {\n            case .a: return UIBlurEffect(style: .extraLight)\n            case .b: return UIBlurEffect(style: .light)\n            case .c: return UIBlurEffect(style: .dark)\n            }\n        }\n    }\n    @IBOutlet weak var styleSegmentedControl: UISegmentedControl!\n    @IBOutlet weak var blurEffecrSegmentedControl: UISegmentedControl!\n    @IBOutlet var tableView: UITableView! {\n        didSet {\n            // tableView\n            tableView.estimatedRowHeight = 100\n            tableView.layoutMargins = .zero\n            tableView.separatorInset = .zero\n            tableView.register(UITableViewCell.self, forCellReuseIdentifier: \"Cell\")\n        }\n    }\n    fileprivate var textField1: UITextField? {\n        didSet {\n            textField1?.addTarget(self, action: #selector(MainViewController.textFieldEditingChanged(_:)), for: UIControlEvents.editingChanged)\n        }\n    }\n    fileprivate var textField2: UITextField? {\n        didSet {\n            textField2?.addTarget(self, action: #selector(MainViewController.textFieldEditingChanged(_:)), for: UIControlEvents.editingChanged)\n        }\n    }\n    override var prefersStatusBarHidden: Bool {\n        return true\n    }\n}\n\n// MARK: - UITableViewDelegate, UITableViewDataSource\nextension MainViewController: UITableViewDelegate, UITableViewDataSource {\n    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n        return SampleRow.count\n    }\n    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {\n        let cell = tableView.dequeueReusableCell(withIdentifier: \"Cell\")!\n        cell.selectionStyle = .none\n        cell.backgroundColor = .clear\n        cell.contentView.backgroundColor = .clear\n        let row = SampleRow(rawValue: indexPath.row)\n        cell.textLabel?.text = row?.description\n        return cell\n    }\n    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {\n        guard let style = Segmented(rawValue: styleSegmentedControl.selectedSegmentIndex)?.style,\n            let effectStyle = Segmented(rawValue: blurEffecrSegmentedControl.selectedSegmentIndex),\n            let row = SampleRow(rawValue: indexPath.row) else { return }\n        let effect = effectStyle.effect\n        switch row {\n        case .oneButton:\n            let alertController = PCLBlurEffectAlertController(title: row.description,\n                                                               message: nil,\n                                                               effect: effect,\n                                                               style: style)\n            let action = PCLBlurEffectAlertAction(title: \"OK!\", style: .default) { _ in\n                print(\"You pressed OK!\")\n            }\n            alertController.addAction(action)\n            alertController.show()\n        case .okCancel:\n            let alertController = PCLBlurEffectAlertController(title: row.description,\n                                                               message: nil,\n                                                               effect: effect,\n                                                               style: style)\n            let action1 = PCLBlurEffectAlertAction(title: \"OK!\", style: .default) { _ in\n                print(\"You pressed OK!\")\n            }\n            let cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in\n                print(\"You pressed Cancel\")\n            }\n            alertController.configure(alertViewWidth: 200)\n            alertController.configure(cornerRadius: 0)\n            alertController.addAction(action1)\n            alertController.addAction(cancelAction)\n            alertController.show()\n        case .titleMessage:\n            let alertController = PCLBlurEffectAlertController(title: \"How are you doing?\",\n                                                               message: \"Press a button!\",\n                                                               effect: effect,\n                                                               style: style)\n            switch effectStyle {\n            case .c:\n                alertController.configure(titleColor: .white)\n                alertController.configure(messageColor: .white)\n            default:\n                break\n            }\n            let action1 = PCLBlurEffectAlertAction(title: \"I’m fine.\", style: .default) { _ in\n                print(\"You pressed I’m fine.\")\n            }\n            let action2 = PCLBlurEffectAlertAction(title: \"Not so good.\", style: .default) { _ in\n                print(\"You pressed Not so good.\")\n            }\n            alertController.addAction(action1)\n            alertController.addAction(action2)\n            alertController.show()\n        case .buttonOnly:\n            let alertController = PCLBlurEffectAlertController(title: nil,\n                                                               message: nil,\n                                                               effect: effect,\n                                                               style: style)\n            let action1 = PCLBlurEffectAlertAction(title: \"Default\", style: .default) { _ in\n                print(\"You pressed Default\")\n            }\n            let action2 = PCLBlurEffectAlertAction(title: \"Destructive\", style: .destructive) { _ in\n                print(\"You pressed Destructive\")\n            }\n            let cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in\n                print(\"You pressed Cancel\")\n            }\n            alertController.addAction(action1)\n            alertController.addAction(action2)\n            alertController.addAction(cancelAction)\n            alertController.show()\n        case .colorful:\n            let alertController = PCLBlurEffectAlertController(title: \"title title title\\ntitle title title title\",\n                                                               message: \"message message message\\n message message\",\n                                                               effect: effect,\n                                                               style: style)\n            alertController.configure(overlayBackgroundColor: UIColor.orange)\n            alertController.configure(titleFont: UIFont.systemFont(ofSize: 24),\n                                      titleColor: .red)\n            alertController.configure(messageColor: .blue)\n            alertController.configure(buttonFont: [.default: UIFont.systemFont(ofSize: 24),\n                                                   .destructive: UIFont.boldSystemFont(ofSize: 20),\n                                                   .cancel: UIFont.systemFont(ofSize: 14)],\n                                      buttonTextColor: [.default: .brown,\n                                                        .destructive: .blue,\n                                                        .cancel: .gray])\n            let action1 = PCLBlurEffectAlertAction(title: \"Default\", style: .default) { _ in\n                print(\"You pressed No.1\")\n            }\n            let action2 = PCLBlurEffectAlertAction(title: \"Destructive\", style: .destructive) { _ in\n                print(\"You pressed No.2\")\n            }\n            let cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in\n                print(\"You pressed Cancel\")\n            }\n            alertController.addAction(action1)\n            alertController.addAction(action2)\n            alertController.addAction(cancelAction)\n            alertController.show()\n        case .textField:\n            let alertController = PCLBlurEffectAlertController(title: \"title title title title title title title\",\n                                                               message: \"message message message message message\",\n                                                               effect: effect,\n                                                               style: style)\n            alertController.addTextField { textField in\n                self.textField1 = textField\n            }\n            alertController.addTextField { textField in\n                self.textField2 = textField\n            }\n            alertController.configure(textFieldsViewBackgroundColor: UIColor.white.withAlphaComponent(0.1))\n            alertController.configure(textFieldBorderColor: .black)\n            alertController.configure(buttonDisableTextColor: [.default: .lightGray, .destructive: .lightGray])\n            let action1 = PCLBlurEffectAlertAction(title: \"Default\", style: .default) { _ in\n                print(\"You pressed Default\")\n            }\n            let action2 = PCLBlurEffectAlertAction(title: \"Destructive\", style: .destructive) { _ in\n                print(\"You pressed Destructive\")\n            }\n            let cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in\n                print(\"You pressed Cancel\")\n            }\n            action1.isEnabled = false\n            action2.isEnabled = false\n            alertController.addAction(action1)\n            alertController.addAction(action2)\n            alertController.addAction(cancelAction)\n            alertController.show()\n        case .image:\n            let alertController = PCLBlurEffectAlertController(title: \"title title title title title title title\",\n                                                               message: \"message message message message message\",\n                                                               effect: effect,\n                                                               style: style)\n            alertController.addImageView(with: Assets.image.sample2)\n            switch effectStyle {\n            case .c:\n                alertController.configure(titleColor: .white)\n                alertController.configure(messageColor: .white)\n            default:\n                break\n            }\n            let catAction = PCLBlurEffectAlertAction(title: \"Cat?\", style: .default) { _ in\n                print(\"You pressed Cat?\")\n            }\n            let dogAction = PCLBlurEffectAlertAction(title: \"Dog?\", style: .default) { _ in\n                print(\"You pressed Dog?\")\n            }\n            alertController.addAction(catAction)\n            alertController.addAction(dogAction)\n            alertController.show()\n        }\n    }\n}\n\n// MARK: - UITextFieldDelegate\nextension MainViewController {\n    func textFieldEditingChanged(_ textField: UITextField) {\n        guard let alertController = presentedViewController as? PCLBlurEffectAlertController else {\n            return\n        }\n        alertController.actions.filter { $0.style != .cancel }.forEach {\n            $0.isEnabled = textField1?.text?.isEmpty == false && textField2?.text?.isEmpty == false\n        }\n    }\n}\n"
  },
  {
    "path": "Example/Example.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t935BD7381CE272F400E5FDF7 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 935BD7371CE272F400E5FDF7 /* AppDelegate.swift */; };\n\t\t935BD73A1CE272F400E5FDF7 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 935BD7391CE272F400E5FDF7 /* MainViewController.swift */; };\n\t\t935BD73D1CE272F400E5FDF7 /* MainViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 935BD73B1CE272F400E5FDF7 /* MainViewController.storyboard */; };\n\t\t935BD73F1CE272F400E5FDF7 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 935BD73E1CE272F400E5FDF7 /* Assets.xcassets */; };\n\t\t935BD7421CE272F400E5FDF7 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 935BD7401CE272F400E5FDF7 /* LaunchScreen.storyboard */; };\n\t\tED413F421D8AA81B0024036E /* PCLBlurEffectAlert.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED413F411D8AA8130024036E /* PCLBlurEffectAlert.framework */; };\n\t\tED413F431D8AA81B0024036E /* PCLBlurEffectAlert.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = ED413F411D8AA8130024036E /* PCLBlurEffectAlert.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tED6872461E63C12900B8A0B4 /* Assets.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED6872451E63C12900B8A0B4 /* Assets.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tED413F401D8AA8130024036E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = ED413F3C1D8AA8130024036E /* PCLBlurEffectAlert.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = 935BD7B81CE274A500E5FDF7;\n\t\t\tremoteInfo = PCLBlurEffectAlert;\n\t\t};\n\t\tED413F441D8AA81B0024036E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = ED413F3C1D8AA8130024036E /* PCLBlurEffectAlert.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = OBJ_17;\n\t\t\tremoteInfo = PCLBlurEffectAlert;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t935BD7EA1CE2759F00E5FDF7 /* Embed Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tED413F431D8AA81B0024036E /* PCLBlurEffectAlert.framework in Embed Frameworks */,\n\t\t\t);\n\t\t\tname = \"Embed Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t935BD7341CE272F400E5FDF7 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t935BD7371CE272F400E5FDF7 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t935BD7391CE272F400E5FDF7 /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = \"<group>\"; };\n\t\t935BD73C1CE272F400E5FDF7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainViewController.storyboard; sourceTree = \"<group>\"; };\n\t\t935BD73E1CE272F400E5FDF7 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t935BD7411CE272F400E5FDF7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t935BD7431CE272F400E5FDF7 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tED413F3C1D8AA8130024036E /* PCLBlurEffectAlert.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = PCLBlurEffectAlert.xcodeproj; path = ../PCLBlurEffectAlert.xcodeproj; sourceTree = \"<group>\"; };\n\t\tED6872451E63C12900B8A0B4 /* Assets.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Assets.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t935BD7311CE272F400E5FDF7 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tED413F421D8AA81B0024036E /* PCLBlurEffectAlert.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t935BD72B1CE272F400E5FDF7 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t935BD7361CE272F400E5FDF7 /* Example */,\n\t\t\t\tED413F3B1D8AA8130024036E /* Frameworks */,\n\t\t\t\t935BD7351CE272F400E5FDF7 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t935BD7351CE272F400E5FDF7 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t935BD7341CE272F400E5FDF7 /* Example.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t935BD7361CE272F400E5FDF7 /* Example */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t935BD7371CE272F400E5FDF7 /* AppDelegate.swift */,\n\t\t\t\tED6872451E63C12900B8A0B4 /* Assets.swift */,\n\t\t\t\t935BD73E1CE272F400E5FDF7 /* Assets.xcassets */,\n\t\t\t\t935BD7431CE272F400E5FDF7 /* Info.plist */,\n\t\t\t\t935BD7401CE272F400E5FDF7 /* LaunchScreen.storyboard */,\n\t\t\t\t935BD73B1CE272F400E5FDF7 /* MainViewController.storyboard */,\n\t\t\t\t935BD7391CE272F400E5FDF7 /* MainViewController.swift */,\n\t\t\t);\n\t\t\tpath = Example;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tED413F3B1D8AA8130024036E /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tED413F3C1D8AA8130024036E /* PCLBlurEffectAlert.xcodeproj */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tED413F3D1D8AA8130024036E /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tED413F411D8AA8130024036E /* PCLBlurEffectAlert.framework */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t935BD7331CE272F400E5FDF7 /* Example */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 935BD7461CE272F400E5FDF7 /* Build configuration list for PBXNativeTarget \"Example\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t935BD7301CE272F400E5FDF7 /* Sources */,\n\t\t\t\t935BD7311CE272F400E5FDF7 /* Frameworks */,\n\t\t\t\t935BD7321CE272F400E5FDF7 /* Resources */,\n\t\t\t\t935BD7EA1CE2759F00E5FDF7 /* Embed Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tED413F451D8AA81B0024036E /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = Example;\n\t\t\tproductName = Example;\n\t\t\tproductReference = 935BD7341CE272F400E5FDF7 /* Example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t935BD72C1CE272F400E5FDF7 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0730;\n\t\t\t\tLastUpgradeCheck = 0800;\n\t\t\t\tORGANIZATIONNAME = \"hiroyuki yoshida\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t935BD7331CE272F400E5FDF7 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 0800;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 935BD72F1CE272F400E5FDF7 /* Build configuration list for PBXProject \"Example\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 935BD72B1CE272F400E5FDF7;\n\t\t\tproductRefGroup = 935BD7351CE272F400E5FDF7 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = ED413F3D1D8AA8130024036E /* Products */;\n\t\t\t\t\tProjectRef = ED413F3C1D8AA8130024036E /* PCLBlurEffectAlert.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t935BD7331CE272F400E5FDF7 /* Example */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tED413F411D8AA8130024036E /* PCLBlurEffectAlert.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = PCLBlurEffectAlert.framework;\n\t\t\tremoteRef = ED413F401D8AA8130024036E /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t935BD7321CE272F400E5FDF7 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t935BD73F1CE272F400E5FDF7 /* Assets.xcassets in Resources */,\n\t\t\t\t935BD7421CE272F400E5FDF7 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t935BD73D1CE272F400E5FDF7 /* MainViewController.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t935BD7301CE272F400E5FDF7 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t935BD7381CE272F400E5FDF7 /* AppDelegate.swift in Sources */,\n\t\t\t\tED6872461E63C12900B8A0B4 /* Assets.swift in Sources */,\n\t\t\t\t935BD73A1CE272F400E5FDF7 /* MainViewController.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tED413F451D8AA81B0024036E /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = PCLBlurEffectAlert;\n\t\t\ttargetProxy = ED413F441D8AA81B0024036E /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t935BD73B1CE272F400E5FDF7 /* MainViewController.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t935BD73C1CE272F400E5FDF7 /* Base */,\n\t\t\t);\n\t\t\tname = MainViewController.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t935BD7401CE272F400E5FDF7 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t935BD7411CE272F400E5FDF7 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t935BD7441CE272F400E5FDF7 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t935BD7451CE272F400E5FDF7 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t935BD7471CE272F400E5FDF7 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = io.github.hryk224.Example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t935BD7481CE272F400E5FDF7 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = io.github.hryk224.Example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t935BD72F1CE272F400E5FDF7 /* Build configuration list for PBXProject \"Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t935BD7441CE272F400E5FDF7 /* Debug */,\n\t\t\t\t935BD7451CE272F400E5FDF7 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t935BD7461CE272F400E5FDF7 /* Build configuration list for PBXNativeTarget \"Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t935BD7471CE272F400E5FDF7 /* Debug */,\n\t\t\t\t935BD7481CE272F400E5FDF7 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 935BD72C1CE272F400E5FDF7 /* Project object */;\n}\n"
  },
  {
    "path": "Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:Example.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 hryk224\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "PCLBlurEffectAlert.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name         = \"PCLBlurEffectAlert\"\n  s.version      = \"2.1.1\"\n  s.summary      = \"Custom Swift AlertController.\"\n  s.homepage     = \"https://github.com/hryk224/PCLBlurEffectAlert\"\n  s.screenshots  = \"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample1.gif\"\n  s.license      = { :type => \"MIT\", :file => \"LICENSE\" }\n  s.author             = { \"hyyk224\" => \"hryk224@gmail.com\" }\n  s.platform     = :ios, \"8.0\"\n  s.source       = { :git => \"https://github.com/hryk224/PCLBlurEffectAlert.git\", :tag => \"#{s.version}\" }\n  s.source_files  = \"Sources/*.{h,swift}\"\n  s.frameworks = \"UIKit\"\n  s.requires_arc = true\nend\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/PCLBlurEffectAlertTests_Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plist version=\"1.0\">\n<dict>\n  <key>CFBundleDevelopmentRegion</key>\n  <string>en</string>\n  <key>CFBundleExecutable</key>\n  <string>$(EXECUTABLE_NAME)</string>\n  <key>CFBundleIdentifier</key>\n  <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n  <key>CFBundleInfoDictionaryVersion</key>\n  <string>6.0</string>\n  <key>CFBundleName</key>\n  <string>$(PRODUCT_NAME)</string>\n  <key>CFBundlePackageType</key>\n  <string>BNDL</string>\n  <key>CFBundleShortVersionString</key>\n  <string>1.0</string>\n  <key>CFBundleSignature</key>\n  <string>????</string>\n  <key>CFBundleVersion</key>\n  <string>$(CURRENT_PROJECT_VERSION)</string>\n  <key>NSPrincipalClass</key>\n  <string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/PCLBlurEffectAlert_Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>FMWK</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>2.1.1</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>$(CURRENT_PROJECT_VERSION)</string>\n\t<key>NSPrincipalClass</key>\n\t<string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t93905ED61E630FC500A483CD /* PCLBlurEffectAlert+TransitionAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93905ED51E630FC500A483CD /* PCLBlurEffectAlert+TransitionAnimator.swift */; };\n\t\t93CE21B21E563926003D4137 /* PCLBlurEffectAlert+Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93CE21B01E563926003D4137 /* PCLBlurEffectAlert+Action.swift */; };\n\t\t93CE21B31E563926003D4137 /* PCLBlurEffectAlert+Controller.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93CE21B11E563926003D4137 /* PCLBlurEffectAlert+Controller.swift */; };\n\t\t93CE21B51E563938003D4137 /* PCLBlurEffectAlert.swift in Sources */ = {isa = PBXBuildFile; fileRef = 93CE21B41E563938003D4137 /* PCLBlurEffectAlert.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t93905ED51E630FC500A483CD /* PCLBlurEffectAlert+TransitionAnimator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = \"PCLBlurEffectAlert+TransitionAnimator.swift\"; sourceTree = \"<group>\"; };\n\t\t93CE21AF1E563926003D4137 /* PCLBlurEffectAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PCLBlurEffectAlert.h; sourceTree = \"<group>\"; };\n\t\t93CE21B01E563926003D4137 /* PCLBlurEffectAlert+Action.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = \"PCLBlurEffectAlert+Action.swift\"; sourceTree = \"<group>\"; };\n\t\t93CE21B11E563926003D4137 /* PCLBlurEffectAlert+Controller.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = \"PCLBlurEffectAlert+Controller.swift\"; sourceTree = \"<group>\"; };\n\t\t93CE21B41E563938003D4137 /* PCLBlurEffectAlert.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PCLBlurEffectAlert.swift; sourceTree = \"<group>\"; };\n\t\tOBJ_15 /* PCLBlurEffectAlert.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = PCLBlurEffectAlert.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tOBJ_6 /* Package.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = Package.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tOBJ_23 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 0;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tOBJ_14 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tOBJ_15 /* PCLBlurEffectAlert.framework */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tOBJ_5 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tOBJ_6 /* Package.swift */,\n\t\t\t\tOBJ_7 /* Sources */,\n\t\t\t\tOBJ_14 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tOBJ_7 /* Sources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tOBJ_8 /* PCLBlurEffectAlert */,\n\t\t\t);\n\t\t\tpath = Sources;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tOBJ_8 /* PCLBlurEffectAlert */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t93CE21B01E563926003D4137 /* PCLBlurEffectAlert+Action.swift */,\n\t\t\t\t93CE21B11E563926003D4137 /* PCLBlurEffectAlert+Controller.swift */,\n\t\t\t\t93905ED51E630FC500A483CD /* PCLBlurEffectAlert+TransitionAnimator.swift */,\n\t\t\t\t93CE21AF1E563926003D4137 /* PCLBlurEffectAlert.h */,\n\t\t\t\t93CE21B41E563938003D4137 /* PCLBlurEffectAlert.swift */,\n\t\t\t);\n\t\t\tname = PCLBlurEffectAlert;\n\t\t\tpath = Sources;\n\t\t\tsourceTree = SOURCE_ROOT;\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tOBJ_17 /* PCLBlurEffectAlert */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = OBJ_18 /* Build configuration list for PBXNativeTarget \"PCLBlurEffectAlert\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tOBJ_21 /* Sources */,\n\t\t\t\tOBJ_23 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = PCLBlurEffectAlert;\n\t\t\tproductName = PCLBlurEffectAlert;\n\t\t\tproductReference = OBJ_15 /* PCLBlurEffectAlert.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tOBJ_1 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 9999;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tOBJ_17 = {\n\t\t\t\t\t\tLastSwiftMigration = 0820;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = OBJ_2 /* Build configuration list for PBXProject \"PCLBlurEffectAlert\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t);\n\t\t\tmainGroup = OBJ_5;\n\t\t\tproductRefGroup = OBJ_14 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tOBJ_17 /* PCLBlurEffectAlert */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tOBJ_21 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 0;\n\t\t\tfiles = (\n\t\t\t\t93CE21B21E563926003D4137 /* PCLBlurEffectAlert+Action.swift in Sources */,\n\t\t\t\t93CE21B31E563926003D4137 /* PCLBlurEffectAlert+Controller.swift in Sources */,\n\t\t\t\t93905ED61E630FC500A483CD /* PCLBlurEffectAlert+TransitionAnimator.swift in Sources */,\n\t\t\t\t93CE21B51E563938003D4137 /* PCLBlurEffectAlert.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin XCBuildConfiguration section */\n\t\tOBJ_19 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PLATFORM_DIR)/Developer/Library/Frameworks\",\n\t\t\t\t);\n\t\t\t\tHEADER_SEARCH_PATHS = \"$(inherited)\";\n\t\t\t\tINFOPLIST_FILE = PCLBlurEffectAlert.xcodeproj/PCLBlurEffectAlert_Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx\";\n\t\t\t\tOTHER_LDFLAGS = \"$(inherited)\";\n\t\t\t\tOTHER_SWIFT_FLAGS = \"$(inherited)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = PCLBlurEffectAlert;\n\t\t\t\tPRODUCT_MODULE_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tTARGET_NAME = PCLBlurEffectAlert;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tOBJ_20 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(PLATFORM_DIR)/Developer/Library/Frameworks\",\n\t\t\t\t);\n\t\t\t\tHEADER_SEARCH_PATHS = \"$(inherited)\";\n\t\t\t\tINFOPLIST_FILE = PCLBlurEffectAlert.xcodeproj/PCLBlurEffectAlert_Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx\";\n\t\t\t\tOTHER_LDFLAGS = \"$(inherited)\";\n\t\t\t\tOTHER_SWIFT_FLAGS = \"$(inherited)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = PCLBlurEffectAlert;\n\t\t\t\tPRODUCT_MODULE_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tTARGET_NAME = PCLBlurEffectAlert;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tOBJ_3 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tENABLE_NS_ASSERTIONS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tOTHER_SWIFT_FLAGS = \"-DXcode\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = \"iphonesimulator iphoneos\";\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tUSE_HEADERMAP = NO;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tOBJ_4 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = s;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tOTHER_SWIFT_FLAGS = \"-DXcode\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSUPPORTED_PLATFORMS = \"iphonesimulator iphoneos\";\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tUSE_HEADERMAP = NO;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tOBJ_18 /* Build configuration list for PBXNativeTarget \"PCLBlurEffectAlert\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tOBJ_19 /* Debug */,\n\t\t\t\tOBJ_20 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Debug;\n\t\t};\n\t\tOBJ_2 /* Build configuration list for PBXProject \"PCLBlurEffectAlert\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tOBJ_3 /* Debug */,\n\t\t\t\tOBJ_4 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Debug;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = OBJ_1 /* Project object */;\n}\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/xcshareddata/xcschemes/PCLBlurEffectAlert.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"9999\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"OBJ_17\"\n               BuildableName = \"PCLBlurEffectAlert.framework\"\n               BlueprintName = \"PCLBlurEffectAlert\"\n               ReferencedContainer = \"container:PCLBlurEffectAlert.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"OBJ_24\"\n               BuildableName = \"PCLBlurEffectAlertTests.xctest\"\n               BlueprintName = \"PCLBlurEffectAlertTests\"\n               ReferencedContainer = \"container:PCLBlurEffectAlert.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"OBJ_17\"\n            BuildableName = \"PCLBlurEffectAlert.framework\"\n            BlueprintName = \"PCLBlurEffectAlert\"\n            ReferencedContainer = \"container:PCLBlurEffectAlert.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "PCLBlurEffectAlert.xcodeproj/xcshareddata/xcschemes/xcschememanagement.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<plist version=\"1.0\">\n<dict>\n  <key>SchemeUserState</key>\n  <dict>\n    <key>PCLBlurEffectAlert.xcscheme</key>\n    <dict></dict>\n  </dict>\n  <key>SuppressBuildableAutocreation</key>\n  <dict></dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "Package.swift",
    "content": "import PackageDescription\n\nlet package = Package(\n    name: \"PCLBlurEffectAlert\",\n    targets: [],\n    dependencies: [\n        .Package(url: \"https://github.com/hryk224/PCLBlurEffectAlert\", majorVersion: 2),\n        ]\n)\n"
  },
  {
    "path": "README.md",
    "content": "# PCLBlurEffectAlert\n\nSwift AlertController, use UIVisualeffectview\n\n[![Cocoapods Compatible](http://img.shields.io/cocoapods/v/PCLBlurEffectAlert.svg?style=flat)](http://cocoadocs.org/docsets/PCLBlurEffectAlert)\n[![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample1.gif\" width=\"320\" > <img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample2.gif\" width=\"320\" >\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample3.gif\" width=\"320\" > <img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample4.gif\" width=\"320\" >\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample5.gif\" width=\"320\" >\n\n## Requirements\n- iOS 8.0+\n- Swift 3.0+\n- ARC\n\n## Feature\n- [x] Change color\n- [x] Change effect\n- [x] Change font\n- [x] Use UITextField\n- [x] Use UIImageView\n\n## install\n\n#### Cocoapods\n\nAdding the following to your `Podfile` and running `pod install`:\n\n```Ruby\nuse_frameworks!\npod \"PCLBlurEffectAlert\"\n```\n\n### import\n\n```Swift\nimport PCLBlurEffectAlert\n```\n\n## Initialize\n\n#### UIBlurEffect\n\n```Swift\n// Default effect: UIBlurEffect(style: .extraLight)\nconvenience init(title: String?, message: String?, effect: UIBlurEffect, style: PCLBlurEffectAlert.ControllerStyle)\n```\n\n`style` => `alert`, `alertVertical`, `actionSheet`\n\nWhen `actions` count becomes more than 3, `alert` and `alertVertical` is the same as.\n\n## Usage\n\n#### Example\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"How are you doing?\", \n                                                  message: \"Press a button!\",\n                                                  effect: UIBlurEffect(style: .lightdark)\n                                                  style: .alert)'\n// Customize if needed\nalertController.configure(titleColor: .white)\nalertController.configure(buttonFont: [.default: UIFont.systemFont(ofSize: 24),\n                                       .destructive: UIFont.boldSystemFont(ofSize: 20),\n                                       .cancel: UIFont.systemFont(ofSize: 14)])\n\n// Adds ImageView\nalertController.addImageView(with: <image files>)\n\n// Adds TextField\nalertController.addTextField()\n\n// Adds actions\nlet action = PCLBlurEffectAlertAction(title: \"I’m fine.\", style: .default) { _ in }\nlet cancelAction = PCLBlurEffectAlertAction(title: \"Not so good.\", style: .cancel) { _ in }\nalertController.addAction(action)\nalertController.addAction(cancelAction)\n\n// Presented\nalertController.show() // or present(alertController, animated: true, completion: nil)\n```\n\n#### Sources\n\n```Swift\n// Adds Actions\nopen func addAction(_ action: PCLBlurEffectAlertAction)\n// Adds ImageView\nopen func addImageView(with image: UIImage, configurationHandler: ((UIImageView?) -> Void)? = nil)\n// Adds TextFields\nopen func addTextField(with configurationHandler: ((UITextField?) -> Void)? = nil)\n// Presented\nopen func show()\n```\n\n## Customize\n\n```Swift\n// Default ActionSheet: UIScreen.main.bounds.width - (margin * 2)\n// Default Alert: 320 - (margin * 2)\nfunc configure(alertViewWidth: CGFloat)\n\n// Default: 4\nfunc configure(cornerRadius: CGFloat)\n// Default: 1 / UIScreen.main.scale\nfunc configure(thin: CGFloat)\n// Default: 8\nfunc configure(margin: CGFloat)\n\n/// Color\n// Default: UIColor.black.withAlphaComponent(0.3)\nfunc configure(overlayBackgroundColor: UIColor)\n// Default: .clear\nfunc configure(backgroundColor: UIColor)\n\n/// Text\n// Default: .boldSystemFont(ofSize: 16)\n// Default: .black\nfunc configure(titleFont: UIFont, titleColor: UIColor)\n// Default: .systemFont(ofSize: 14)\n// Default: .black\nfunc configure(messageFont: UIFont, messageColor: UIColor)\n// Default: \n// .default: UIFont.systemFont(ofSize: 16),\n// .cancel: UIFont.systemFont(ofSize: 16),\n// .destructive: UIFont.systemFont(ofSize: 16)\nfunc configure(buttonFont: [PCLBlurEffectAlert.ActionStyle : UIFont])\n// Default: \n// .default: .black,\n// .cancel: .black,\n// .destructive: .red\nfunc configure(buttonTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor])\n// Default: \n// .default: .gray,\n// .cancel: .gray,\n// .destructive: .gray\nfunc configure(buttonDisableTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor])\n\n/// Button\n// Default: 44\nfunc configure(buttonHeight: CGFloat)\n// Default: .clear\nfunc configure(buttonBackgroundColor: UIColor)\n\n// Default: 32\nfunc configure(textFieldHeight: CGFloat)\n// Default: UIColor.white.withAlphaComponent(0.1)\nfunc configure(textFieldsViewBackgroundColor: UIColor)\n// Default: UIColor.black.withAlphaComponent(0.15)\nfunc configure(textFieldBorderColor: UIColor)\n\n```\n\n## More Examples\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"How are you doing?\", \n                                                  message: \"Press a button!\",\n                                                  style: .alert)\nlet action1 = PCLBlurEffectAlertAction(title: \"I’m fine.\", style: .default) { _ in }\nlet action2 = PCLBlurEffectAlertAction(title: \"Not so good.\", style: .default) { _ in }\nalertController.addAction(action1)\nalertController.addAction(action2)\nalertController.show()\n```\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample1.png\" width=\"320\" >\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"title title title title title title title\",\n                                                  message: \"message message message message message\",\n                                                  effect: UIBlurEffect(style: .light),\n                                                  style: .alert)\nalertController.addTextField { _ in }\nalertController.addTextField { _ in }\nalertController.configure(textFieldsViewBackgroundColor: UIColor.white.withAlphaComponent(0.1))\nalertController.configure(textFieldBorderColor: .black)\nalertController.configure(buttonDisableTextColor: [.default: .lightGray, .destructive: .lightGray])\nlet action1 = PCLBlurEffectAlertAction(title: \"Default\", style: .default) { _ in }\nlet action2 = PCLBlurEffectAlertAction(title: \"Destructive\", style: .destructive) { _ in }\nlet cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in }\nalertController.addAction(action1)\nalertController.addAction(action2)\nalertController.addAction(cancelAction)\nalertController.show()\n```\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample2.png\" width=\"320\" >\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"How are you doing?\", \n                                                  message: \"Press a button!\",\n                                                  effect: UIBlurEffect(style: .dark),\n                                                  style: .actionSheet)\nlet action1 = PCLBlurEffectAlertAction(title: \"I’m fine.\", style: .default) { _ in }\nlet action2 = PCLBlurEffectAlertAction(title: \"Not so good.\", style: .default) { _ in }\nalertController.addAction(action1)\nalertController.addAction(action2)\nalertController.show()\n```\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample3.png\" width=\"320\" >\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"title title title title title title title\",\n                                                  message: \"message message message message message\",\n                                                  style: .actionSheet)\nalertController.addTextField()\nalertController.addTextField()\nalertController.configure(textFieldsViewBackgroundColor: UIColor.white.withAlphaComponent(0.1))\nalertController.configure(textFieldBorderColor: .black)\nalertController.configure(buttonDisableTextColor: [.default: .lightGray, .destructive: .lightGray])\nlet action1 = PCLBlurEffectAlertAction(title: \"Default\", style: .default) { _ in }\nlet action2 = PCLBlurEffectAlertAction(title: \"Destructive\", style: .destructive) { _ in }\nlet cancelAction = PCLBlurEffectAlertAction(title: \"Cancel\", style: .cancel) { _ in }\nalertController.addAction(action1)\nalertController.addAction(action2)\nalertController.addAction(cancelAction)\nalertController.show()\n```\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample4.png\" width=\"320\" >\n\n```Swift\nlet alertController = PCLBlurEffectAlertController(title: \"title title title title title title title\",\n                                                    message: \"message message message message message\",\n                                                    style: .alert)\nalertController.addImageView(with: UIImage(named: \"cat\")!)\nlet catAction = PCLBlurEffectAlertAction(title: \"Cat?\", style: .default) { _ in\n    print(\"You pressed Cat?\")\n}\nlet dogAction = PCLBlurEffectAlertAction(title: \"Dog?\", style: .default) { _ in\n    print(\"You pressed Dog?\")\n}\nalertController.addAction(catAction)\nalertController.addAction(dogAction)\nalertController.show()\n```\n\n<img src=\"https://raw.githubusercontent.com/wiki/hryk224/PCLBlurEffectAlert/images/sample5.png\" width=\"320\" >\n\n## Photos from\n\n* by [pakutaso.com](https://www.pakutaso.com/)\n* by [FLATICON](http://www.flaticon.com/)\n\n## Acknowledgements\n\n* Inspired by [DOAlertController](https://github.com/okmr-d/DOAlertController) in [okmr-d](https://github.com/okmr-d).\n\n## License\n\nThis project is made available under the MIT license. See LICENSE file for details.\n"
  },
  {
    "path": "Sources/PCLBlurEffectAlert+Action.swift",
    "content": "//\n//  PCLBlurEffectAlert+Action.swift\n//  PCLBlurEffectAlert\n//\n//  Created by yoshida hiroyuki on 2016/09/15.\n//  Copyright © 2016年 hiroyuki yoshida. All rights reserved.\n//\n\nimport UIKit\n\npublic typealias PCLBlurEffectAlertAction = PCLBlurEffectAlert.Action\n\nextension PCLBlurEffectAlert {\n    open class Action {\n        var tag: Int = -1\n        var title: String?\n        open var style: PCLBlurEffectAlert.ActionStyle\n        var handler: ((PCLBlurEffectAlert.Action?) -> Void)?\n        var button: UIButton!\n        var visualEffectView: UIVisualEffectView?\n        lazy var backgroundView: UIView = {\n           return UIView()\n        }()\n        open var isEnabled: Bool = true {\n            didSet {\n                guard oldValue != isEnabled else { return }\n                PCLBlurEffectAlert.NotificationManager.shared.postAlertActionEnabledDidChangeNotification()\n            }\n        }\n        public init(title: String,\n                    style: PCLBlurEffectAlert.ActionStyle,\n                    handler: ((PCLBlurEffectAlert.Action?) -> Void)?) {\n            self.title = title\n            self.style = style\n            self.handler = handler\n            let button = UIButton(type: .custom)\n            button.tag = tag\n            button.adjustsImageWhenHighlighted = false\n            button.adjustsImageWhenDisabled = false\n            button.layer.masksToBounds = true\n            button.setTitle(title, for: .normal)\n            button.titleLabel?.numberOfLines = 1\n            button.titleLabel?.lineBreakMode = .byTruncatingTail\n            button.titleLabel?.textAlignment = .center\n            self.button = button\n        }\n    }\n}\n"
  },
  {
    "path": "Sources/PCLBlurEffectAlert+Controller.swift",
    "content": "//\n//  PCLBlurEffectAlert+Controller.swift\n//  PCLBlurEffectAlert\n//\n//  Created by yoshida hiroyuki on 2016/09/15.\n//  Copyright © 2016年 hiroyuki yoshida. All rights reserved.\n//\n\nimport UIKit\n\npublic typealias PCLBlurEffectAlertController = PCLBlurEffectAlert.Controller\n\nextension PCLBlurEffectAlert {\n    open class Controller: UIViewController {\n        // Property\n        fileprivate var isNeedlayout = true\n        fileprivate var message: String?\n        fileprivate var textField: UITextField?\n        fileprivate var imageView: UIImageView?\n        var style: PCLBlurEffectAlert.ControllerStyle = .actionSheet\n        fileprivate var effect: UIBlurEffect = UIBlurEffect(style: .extraLight)\n        \n        // Actions\n        open fileprivate(set) var actions: [PCLBlurEffectAlertAction] = []\n        fileprivate var cancelAction: PCLBlurEffectAlertAction?\n        fileprivate var cancelActionTag: Int?\n        fileprivate var keyboardHeight: CGFloat = 0\n        \n        // TextFields\n        fileprivate var textFields: [UITextField] = []\n        \n        // Getter\n        fileprivate var isActionSheet: Bool { return style == .actionSheet }\n        fileprivate var isAlert: Bool { return style == .alert }\n        fileprivate var isAlertVertical: Bool { return style == .alertVertical }\n        fileprivate var hasTitle: Bool { return title?.isEmpty == false }\n        fileprivate var hasMessage: Bool { return message?.isEmpty == false }\n        fileprivate var hasImageView: Bool { return imageView != nil }\n        fileprivate var hasTextField: Bool { return !textFields.isEmpty }\n        \n        // OverlayView\n        let overlayView = UIView()\n        fileprivate let tapGestureRecognizer = UITapGestureRecognizer()\n        // ContainerView\n        let containerView = RespondsView()\n        fileprivate var containerViewBottomLayoutConstraint: NSLayoutConstraint!\n        // AlertView\n        let alertView = UIView()\n        fileprivate var alertViewWidthConstraint: NSLayoutConstraint!\n        fileprivate var alertViewHeightConstraint: NSLayoutConstraint!\n        // CornerView\n        let cornerView = UIView()\n        fileprivate var cornerViewHeightConstraint: NSLayoutConstraint!\n        // textAreaView\n        fileprivate let textAreaView = UIView()\n        fileprivate var textAreaHeight: CGFloat = 0\n        fileprivate var textAreaViewHeightConstraint: NSLayoutConstraint!\n        fileprivate var textAreaVisualEffectView: UIVisualEffectView!\n        fileprivate var textAreaVisualEffectViewHeightConstraint: NSLayoutConstraint!\n        fileprivate let textAreaBackgroundView = UIView()\n        fileprivate var textAreaBackgroundViewHeightConstraint: NSLayoutConstraint!\n        // titleLabel\n        fileprivate let titleLabel = UILabel()\n        // messageLabel\n        fileprivate let messageLabel = UILabel()\n        \n        // Customize\n        fileprivate var alertViewWidth: CGFloat = 0\n        fileprivate var cornerRadius: CGFloat = 0\n        fileprivate var thin: CGFloat = 1 / UIScreen.main.scale\n        fileprivate var margin: CGFloat = 8\n        fileprivate var overlayBackgroundColor: UIColor = UIColor.black.withAlphaComponent(0.3)\n        fileprivate var backgroundColor: UIColor = .clear\n        fileprivate var buttonBackgroundColor: UIColor = .clear\n        fileprivate var textFieldsViewBackgroundColor: UIColor = UIColor.white.withAlphaComponent(0.1)\n        fileprivate var titleFont: UIFont = .boldSystemFont(ofSize: 16)\n        fileprivate var titleColor: UIColor = .black\n        fileprivate var messageFont: UIFont = .systemFont(ofSize: 14)\n        fileprivate var messageColor: UIColor = .black\n        fileprivate var buttonFont: [PCLBlurEffectAlert.ActionStyle : UIFont] = [\n            .default: UIFont.systemFont(ofSize: 16),\n            .cancel: UIFont.systemFont(ofSize: 16),\n            .destructive: UIFont.systemFont(ofSize: 16)\n        ]\n        fileprivate var buttonTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor] = [\n            .default: .black,\n            .cancel: .black,\n            .destructive: .red\n        ]\n        fileprivate var buttonDisableTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor] = [\n            .default: .gray,\n            .cancel: .gray,\n            .destructive: .gray\n        ]\n        fileprivate var textFieldHeight: CGFloat = 32\n        fileprivate var textFieldBorderColor = UIColor.black.withAlphaComponent(0.15)\n        fileprivate var buttonHeight: CGFloat = 44\n        \n        private var tintColor: UIColor {\n            return view.tintColor\n        }\n        \n        open override var prefersStatusBarHidden: Bool {\n            return presentingViewController?.prefersStatusBarHidden ?? super.prefersStatusBarHidden\n        }\n        \n        public convenience init(title: String?,\n                                message: String?,\n                                effect: UIBlurEffect = UIBlurEffect(style: .extraLight),\n                                style: PCLBlurEffectAlert.ControllerStyle) {\n            self.init(nibName: nil, bundle: nil)\n            self.title = title\n            self.message = message\n            self.style = style\n            self.effect = effect\n            self.textAreaVisualEffectView = UIVisualEffectView(effect: effect) as UIVisualEffectView\n            \n            // NotificationCenter\n            PCLBlurEffectAlert.NotificationManager.shared.addAlertActionEnabledDidChangeNotificationObserver(self)\n            PCLBlurEffectAlert.NotificationManager.shared.addKeyboardNotificationObserver(self)\n            \n            modalPresentationStyle = .overCurrentContext\n            transitioningDelegate = self\n            view.frame.size = UIScreen.main.bounds.size\n            overlayView.frame = UIScreen.main.bounds\n            view.insertSubview(overlayView, at: 0)\n            view.addSubview(containerView)\n            \n            containerView.delegate = self\n            containerView.addSubview(alertView)\n            \n            cornerView.addSubview(textAreaBackgroundView)\n            cornerView.addSubview(textAreaVisualEffectView)\n            cornerView.addSubview(textAreaView)\n            \n            alertView.addSubview(cornerView)\n            switch style {\n            case .actionSheet:\n                alertViewWidth = UIScreen.main.bounds.width - (margin * 2)\n            default:\n                alertViewWidth = 320 - (margin * 2)\n            }\n            cornerRadius = 4\n            buttonTextColor[.default] = tintColor\n            buttonTextColor[.cancel] = tintColor\n            configureConstraints()\n        }\n        deinit {\n            PCLBlurEffectAlert.NotificationManager.shared.removeAlertActionEnabledDidChangeNotificationObserver(self)\n            PCLBlurEffectAlert.NotificationManager.shared.removeKeyboardNotificationObserver(self)\n        }\n        // layout\n        open override func viewWillAppear(_ animated: Bool) {\n            super.viewWillAppear(animated)\n            adjustLayout()\n        }\n    }\n}\n\n// MARK: - User Setting\nextension PCLBlurEffectAlertController {\n    //    ActionSheet: var alertViewWidth: CGFloat = UIScreen.main.bounds.width - (margin * 2)\n    //    Alert: var alertViewWidth = 320 - (margin * 2)\n    open func configure(alertViewWidth: CGFloat) {\n        self.alertViewWidth = alertViewWidth\n    }\n    //    var cornerRadius: CGFloat = 0\n    open func configure(cornerRadius: CGFloat) {\n        self.cornerRadius = cornerRadius\n    }\n    //    var thin: CGFloat = 1 / UIScreen.main.scale\n    open func configure(thin: CGFloat) {\n        self.thin = thin\n    }\n    //    var margin: CGFloat = 8\n    open func configure(margin: CGFloat) {\n        self.margin = margin\n    }\n    //    var backgroundColor = .clear\n    open func configure(backgroundColor: UIColor) {\n        self.backgroundColor = backgroundColor\n    }\n    //    var buttonBackgroundColor = .clear\n    open func configure(buttonBackgroundColor: UIColor) {\n        self.buttonBackgroundColor = buttonBackgroundColor\n    }\n    //    var overlayBackgroundColor = UIColor.black.withAlphaComponent(0.3)\n    open func configure(overlayBackgroundColor: UIColor) {\n        self.overlayBackgroundColor = overlayBackgroundColor\n    }\n    //    var textFieldsViewBackgroundColor = UIColor.white.withAlphaComponent(0.1)\n    open func configure(textFieldsViewBackgroundColor: UIColor) {\n        self.textFieldsViewBackgroundColor = textFieldsViewBackgroundColor\n    }\n    //    var titleFont = UIFont.boldSystemFont(ofSize: 16)\n    //    var titleColor: UIColor = .brown\n    open func configure(titleFont: UIFont) {\n        self.titleFont = titleFont\n    }\n    open func configure(titleColor: UIColor) {\n        self.titleColor = titleColor\n    }\n    open func configure(titleFont: UIFont, titleColor: UIColor) {\n        self.titleFont = titleFont\n        self.titleColor = titleColor\n    }\n    //    var messageFont = UIFont.systemFont(ofSize: 14)\n    //    var messageColor: UIColor = .black\n    open func configure(messageFont: UIFont) {\n        self.messageFont = messageFont\n    }\n    open func configure(messageColor: UIColor) {\n        self.messageColor = messageColor\n    }\n    open func configure(messageFont: UIFont, messageColor: UIColor) {\n        self.messageFont = messageFont\n        self.messageColor = messageColor\n    }\n    //    var buttonFont: [PCLBlurEffectAlert.ActionStyle : UIFont] = [\n    //        .default: UIFont.systemFont(ofSize: 16),\n    //        .cancel: UIFont.systemFont(ofSize: 16),\n    //        .destructive: UIFont.systemFont(ofSize: 16)\n    //    ]\n    //    var buttonTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor] = [\n    //        .default: .black,\n    //        .cancel: .gray,\n    //        .destructive: .red\n    //    ]\n    //    var buttonDisableTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor] = [\n    //        .default: .black,\n    //        .cancel: .black,\n    //        .destructive: .red\n    //    ]\n    open func configure(buttonFont font: [PCLBlurEffectAlert.ActionStyle : UIFont]? = nil,\n                        buttonTextColor textColor: [PCLBlurEffectAlert.ActionStyle : UIColor]? = nil,\n                        buttonDisableTextColor disableTextColor: [PCLBlurEffectAlert.ActionStyle : UIColor]? = nil) {\n        if let font = font?[.default] {\n            self.buttonFont[.default] = font\n        }\n        if let font = font?[.destructive] {\n            self.buttonFont[.destructive] = font\n        }\n        if let font = font?[.cancel] {\n            self.buttonFont[.cancel] = font\n        }\n        if let textColor = textColor?[.default] {\n            self.buttonTextColor[.default] = textColor\n        }\n        if let textColor = textColor?[.destructive] {\n            self.buttonTextColor[.destructive] = textColor\n        }\n        if let textColor = textColor?[.cancel] {\n            self.buttonTextColor[.cancel] = textColor\n        }\n        if let textColor = disableTextColor?[.default] {\n            self.buttonDisableTextColor[.default] = textColor\n        }\n        if let textColor = disableTextColor?[.destructive] {\n            self.buttonDisableTextColor[.destructive] = textColor\n        }\n        if let textColor = disableTextColor?[.cancel] {\n            self.buttonDisableTextColor[.cancel] = textColor\n        }\n    }\n    //    var textFieldHeight: CGFloat = 32\n    open func configure(textFieldHeight: CGFloat) {\n        self.textFieldHeight = textFieldHeight\n    }\n    //    var textFieldBorderColor = UIColor.black.withAlphaComponent(0.15)\n    open func configure(textFieldBorderColor: UIColor) {\n        self.textFieldBorderColor = textFieldBorderColor\n    }\n    //    var buttonHeight: CGFloat = 44\n    open func configure(buttonHeight: CGFloat) {\n        self.buttonHeight = buttonHeight\n    }\n    // Adds Action\n    open func addAction(_ action: PCLBlurEffectAlertAction) {\n        // Error\n        if action.style.isCancel && actions.filter({ $0.style.isCancel }).count > 0 {\n            fatalError(\"Can not be used plurality cancel button\")\n        }\n        action.tag = actions.count\n        action.button?.tag = action.tag\n        if action.style.isCancel {\n            cancelAction = action\n            cancelActionTag = action.tag\n        }\n        actions.append(action)\n        action.button?.setTitle(action.title, for: .normal)\n        action.button?.isEnabled = action.isEnabled\n        action.visualEffectView = UIVisualEffectView(effect: effect) as UIVisualEffectView\n        action.visualEffectView?.isUserInteractionEnabled = false\n    }\n    // Adds TextFields\n    open func addTextField(with configurationHandler: ((UITextField?) -> Void)? = nil) {\n        let textField = UITextField()\n        textField.backgroundColor = .clear\n        configurationHandler?(textField)\n        textFields.append(textField)\n    }\n    // Adds ImageView\n    open func addImageView(with image: UIImage, configurationHandler: ((UIImageView?) -> Void)? = nil) {\n        let imageView = UIImageView()\n        imageView.contentMode = .scaleAspectFill\n        imageView.clipsToBounds = true\n        imageView.backgroundColor = .clear\n        imageView.image = image\n        configurationHandler?(imageView)\n        self.imageView = imageView\n    }\n    // show\n    open func show() {\n        DispatchQueue.main.async {\n            UIApplication.shared.topViewController?.present(self, animated: true, completion: nil)\n        }\n    }\n}\n\n// MARK: - Private\nprivate extension PCLBlurEffectAlertController {\n    func configureConstraints() {\n        configureContainerViewConstraints()\n        configureAlertViewConstraints()\n        configureCornerViewConstraints()\n        configureTextAreaViewConstraints()\n    }\n    func configureContainerViewConstraints() {\n        containerView.translatesAutoresizingMaskIntoConstraints = false\n        let topConstraint = NSLayoutConstraint(item: containerView,\n                                               attribute: .top,\n                                               relatedBy: .equal,\n                                               toItem: view,\n                                               attribute: .top,\n                                               multiplier: 1,\n                                               constant: 0)\n        let rightConstraint = NSLayoutConstraint(item: containerView,\n                                                 attribute: .right,\n                                                 relatedBy: .equal,\n                                                 toItem: view,\n                                                 attribute: .right,\n                                                 multiplier: 1,\n                                                 constant: 0)\n        let leftConstraint = NSLayoutConstraint(item: containerView,\n                                                attribute: .left,\n                                                relatedBy: .equal,\n                                                toItem: view,\n                                                attribute: .left,\n                                                multiplier: 1,\n                                                constant: 0)\n        containerViewBottomLayoutConstraint = NSLayoutConstraint(item: containerView,\n                                                                 attribute: .bottom,\n                                                                 relatedBy: .equal,\n                                                                 toItem: view,\n                                                                 attribute: .bottom,\n                                                                 multiplier: 1,\n                                                                 constant: 0)\n        view.addConstraints([topConstraint,\n                             rightConstraint,\n                             leftConstraint,\n                             containerViewBottomLayoutConstraint])\n    }\n    func configureAlertViewConstraints() {\n        alertView.translatesAutoresizingMaskIntoConstraints = false\n        switch style {\n        case .actionSheet:\n            let centerXConstraint = NSLayoutConstraint(item: alertView,\n                                                       attribute: .centerX,\n                                                       relatedBy: .equal,\n                                                       toItem: containerView,\n                                                       attribute: .centerX,\n                                                       multiplier: 1,\n                                                       constant: 0)\n            let bottomConstraint = NSLayoutConstraint(item: alertView,\n                                                      attribute: .bottom,\n                                                      relatedBy: .equal,\n                                                      toItem: containerView,\n                                                      attribute: .bottom,\n                                                      multiplier: 1,\n                                                      constant: -(margin))\n            alertViewWidthConstraint = NSLayoutConstraint(item: alertView,\n                                                          attribute: .width,\n                                                          relatedBy: .equal,\n                                                          toItem: nil,\n                                                          attribute: .width,\n                                                          multiplier: 1,\n                                                          constant: alertViewWidth)\n            alertViewHeightConstraint = NSLayoutConstraint(item: alertView,\n                                                           attribute: .height,\n                                                           relatedBy: .equal,\n                                                           toItem: nil,\n                                                           attribute: .height,\n                                                           multiplier: 1,\n                                                           constant: 0)\n            containerView.addConstraints([centerXConstraint,\n                                          bottomConstraint,\n                                          alertViewWidthConstraint,\n                                          alertViewHeightConstraint])\n        default:\n            let centerXConstraint = NSLayoutConstraint(item: alertView, attribute: .centerX, relatedBy: .equal, toItem: containerView, attribute: .centerX, multiplier: 1, constant: 0)\n            let centerYConstraint = NSLayoutConstraint(item: alertView, attribute: .centerY, relatedBy: .equal, toItem: containerView, attribute: .centerY, multiplier: 1, constant: 0)\n            alertViewWidthConstraint = NSLayoutConstraint(item: alertView, attribute: .width, relatedBy: .equal, toItem: nil, attribute: .width, multiplier: 1, constant: alertViewWidth)\n            alertViewHeightConstraint = NSLayoutConstraint(item: alertView, attribute: .height, relatedBy: .equal, toItem: nil, attribute: .height, multiplier: 1, constant: 0)\n            containerView.addConstraints([centerXConstraint,\n                                          centerYConstraint,\n                                          alertViewWidthConstraint,\n                                          alertViewHeightConstraint])\n        }\n    }\n    func configureCornerViewConstraints() {\n        cornerView.translatesAutoresizingMaskIntoConstraints = false\n        switch style {\n        case .actionSheet:\n            let topConstraint = NSLayoutConstraint(item: cornerView,\n                                                   attribute: .top,\n                                                   relatedBy: .equal,\n                                                   toItem: alertView,\n                                                   attribute: .top,\n                                                   multiplier: 1,\n                                                   constant: 0)\n            let rightConstraint = NSLayoutConstraint(item: cornerView,\n                                                     attribute: .right,\n                                                     relatedBy: .equal,\n                                                     toItem: alertView,\n                                                     attribute: .right,\n                                                     multiplier: 1,\n                                                     constant: 0)\n            let leftConstraint = NSLayoutConstraint(item: cornerView,\n                                                    attribute: .left,\n                                                    relatedBy: .equal,\n                                                    toItem: alertView,\n                                                    attribute: .left,\n                                                    multiplier: 1,\n                                                    constant: 0)\n            cornerViewHeightConstraint = NSLayoutConstraint(item: cornerView,\n                                                            attribute: .height,\n                                                            relatedBy: .equal,\n                                                            toItem: nil,\n                                                            attribute: .height,\n                                                            multiplier: 1,\n                                                            constant: 0)\n            alertView.addConstraints([topConstraint, rightConstraint, leftConstraint, cornerViewHeightConstraint])\n        default:\n            let topConstraint = NSLayoutConstraint(item: cornerView,\n                                                   attribute: .top,\n                                                   relatedBy: .equal,\n                                                   toItem: alertView,\n                                                   attribute: .top,\n                                                   multiplier: 1,\n                                                   constant: 0)\n            let rightConstraint = NSLayoutConstraint(item: cornerView,\n                                                     attribute: .right,\n                                                     relatedBy: .equal,\n                                                     toItem: alertView,\n                                                     attribute: .right,\n                                                     multiplier: 1,\n                                                     constant: 0)\n            let leftConstraint = NSLayoutConstraint(item: cornerView,\n                                                    attribute: .left,\n                                                    relatedBy: .equal,\n                                                    toItem: alertView,\n                                                    attribute: .left,\n                                                    multiplier: 1,\n                                                    constant: 0)\n            let bottomLayoutConstraint = NSLayoutConstraint(item: cornerView,\n                                                            attribute: .bottom,\n                                                            relatedBy: .equal,\n                                                            toItem: alertView,\n                                                            attribute: .bottom,\n                                                            multiplier: 1,\n                                                            constant: 0)\n            alertView.addConstraints([topConstraint,\n                                      rightConstraint,\n                                      leftConstraint,\n                                      bottomLayoutConstraint])\n        }\n    }\n    func configureTextAreaViewConstraints() {\n        textAreaView.translatesAutoresizingMaskIntoConstraints = false\n        textAreaVisualEffectView.translatesAutoresizingMaskIntoConstraints = false\n        textAreaBackgroundView.translatesAutoresizingMaskIntoConstraints = false\n        \n        let textAreaViewTopConstraint = NSLayoutConstraint(item: textAreaView,\n                                                           attribute: .top,\n                                                           relatedBy: .equal,\n                                                           toItem: cornerView,\n                                                           attribute: .top,\n                                                           multiplier: 1,\n                                                           constant: 0)\n        let textAreaViewRightConstraint = NSLayoutConstraint(item: textAreaView,\n                                                             attribute: .right,\n                                                             relatedBy: .equal,\n                                                             toItem: cornerView,\n                                                             attribute: .right,\n                                                             multiplier: 1,\n                                                             constant: 0)\n        let textAreaViewLeftConstraint = NSLayoutConstraint(item: textAreaView,\n                                                            attribute: .left,\n                                                            relatedBy: .equal,\n                                                            toItem: cornerView,\n                                                            attribute: .left,\n                                                            multiplier: 1,\n                                                            constant: 0)\n        textAreaViewHeightConstraint = NSLayoutConstraint(item: textAreaView,\n                                                          attribute: .height,\n                                                          relatedBy: .equal,\n                                                          toItem: nil,\n                                                          attribute: .height,\n                                                          multiplier: 1,\n                                                          constant: 0)\n        cornerView.addConstraints([textAreaViewTopConstraint,\n                                   textAreaViewRightConstraint,\n                                   textAreaViewLeftConstraint,\n                                   textAreaViewHeightConstraint])\n        \n        let textAreaVisualEffectViewTopConstraint = NSLayoutConstraint(item: textAreaVisualEffectView,\n                                                                       attribute: .top,\n                                                                       relatedBy: .equal,\n                                                                       toItem: cornerView,\n                                                                       attribute: .top,\n                                                                       multiplier: 1,\n                                                                       constant: 0)\n        let textAreaVisualEffectViewRightConstraint = NSLayoutConstraint(item: textAreaVisualEffectView,\n                                                                         attribute: .right,\n                                                                         relatedBy: .equal,\n                                                                         toItem: cornerView,\n                                                                         attribute: .right,\n                                                                         multiplier: 1,\n                                                                         constant: 0)\n        let textAreaVisualEffectViewLeftConstraint = NSLayoutConstraint(item: textAreaVisualEffectView,\n                                                                        attribute: .left,\n                                                                        relatedBy: .equal,\n                                                                        toItem: cornerView,\n                                                                        attribute: .left,\n                                                                        multiplier: 1,\n                                                                        constant: 0)\n        textAreaVisualEffectViewHeightConstraint = NSLayoutConstraint(item: textAreaVisualEffectView,\n                                                                      attribute: .height,\n                                                                      relatedBy: .equal,\n                                                                      toItem: nil,\n                                                                      attribute: .height,\n                                                                      multiplier: 1,\n                                                                      constant: 0)\n        cornerView.addConstraints([textAreaVisualEffectViewTopConstraint,\n                                   textAreaVisualEffectViewRightConstraint,\n                                   textAreaVisualEffectViewLeftConstraint,\n                                   textAreaVisualEffectViewHeightConstraint])\n        \n        let textAreaBackgroundViewTopConstraint = NSLayoutConstraint(item: textAreaBackgroundView,\n                                                                     attribute: .top,\n                                                                     relatedBy: .equal,\n                                                                     toItem: cornerView,\n                                                                     attribute: .top,\n                                                                     multiplier: 1,\n                                                                     constant: 0)\n        let textAreaBackgroundViewRightConstraint = NSLayoutConstraint(item: textAreaBackgroundView,\n                                                                       attribute: .right,\n                                                                       relatedBy: .equal,\n                                                                       toItem: cornerView,\n                                                                       attribute: .right,\n                                                                       multiplier: 1,\n                                                                       constant: 0)\n        let textAreaBackgroundViewLeftConstraint = NSLayoutConstraint(item: textAreaBackgroundView,\n                                                                      attribute: .left,\n                                                                      relatedBy: .equal,\n                                                                      toItem: cornerView,\n                                                                      attribute: .left,\n                                                                      multiplier: 1,\n                                                                      constant: 0)\n        textAreaBackgroundViewHeightConstraint = NSLayoutConstraint(item: textAreaBackgroundView,\n                                                                    attribute: .height,\n                                                                    relatedBy: .equal,\n                                                                    toItem: nil,\n                                                                    attribute: .height,\n                                                                    multiplier: 1,\n                                                                    constant: 0)\n        cornerView.addConstraints([textAreaBackgroundViewTopConstraint,\n                                   textAreaBackgroundViewRightConstraint,\n                                   textAreaBackgroundViewLeftConstraint,\n                                   textAreaBackgroundViewHeightConstraint])\n    }\n    func adjustLayout() {\n        guard isNeedlayout else { return }\n        isNeedlayout = false\n        overlayView.backgroundColor = overlayBackgroundColor\n        alertView.layer.cornerRadius = cornerRadius\n        alertView.clipsToBounds = true\n        alertViewWidthConstraint.constant = alertViewWidth\n        cornerView.layer.cornerRadius = cornerRadius\n        cornerView.clipsToBounds = true\n        var textAreaPositionY: CGFloat = 0\n        textAreaPositionY += (margin * 2)\n        let textAreaWidth = alertViewWidth - (margin * 4)\n        if hasTitle {\n            titleLabel.frame.size = CGSize(width: textAreaWidth, height: 0)\n            titleLabel.numberOfLines = 0\n            titleLabel.textAlignment = .center\n            titleLabel.font = titleFont\n            titleLabel.textColor = titleColor\n            titleLabel.text = title\n            titleLabel.sizeToFit()\n            titleLabel.frame = CGRect(x: margin * 2,\n                                      y: textAreaPositionY,\n                                      width: textAreaWidth,\n                                      height: titleLabel.frame.height)\n            textAreaView.addSubview(titleLabel)\n            textAreaPositionY += titleLabel.frame.height\n        }\n        if hasMessage {\n            if hasTitle {\n                textAreaPositionY += margin\n            }\n            messageLabel.frame.size = CGSize(width: textAreaWidth, height: 0)\n            messageLabel.numberOfLines = 0\n            messageLabel.textAlignment = .center\n            messageLabel.text = message\n            messageLabel.font = messageFont\n            messageLabel.textColor = messageColor\n            messageLabel.sizeToFit()\n            messageLabel.frame = CGRect(x: margin * 2,\n                                        y: textAreaPositionY,\n                                        width: textAreaWidth,\n                                        height: messageLabel.frame.height)\n            textAreaView.addSubview(messageLabel)\n            textAreaPositionY += messageLabel.frame.height\n        }\n        if let imageView = imageView, let image = imageView.image { // hasImageView\n            if hasTitle || hasMessage {\n                textAreaPositionY += margin\n            }\n            let width = min(alertViewWidth - (margin * 2), image.size.width)\n            let height = (width / image.size.width) * image.size.height\n            let size = CGSize(width: width, height: height)\n            imageView.frame = CGRect(x: (alertViewWidth - size.width) / 2,\n                                     y: textAreaPositionY,\n                                     width: size.width,\n                                     height: size.height)\n            textAreaView.addSubview(imageView)\n            textAreaPositionY += imageView.frame.height\n        }\n        if hasTextField {\n            if hasTitle || hasMessage || hasImageView {\n                textAreaPositionY += margin\n            }\n            let textFieldsView = UIView()\n            textFieldsView.backgroundColor = textFieldsViewBackgroundColor\n            textFieldsView.layer.cornerRadius = (cornerRadius / 2)\n            textFieldsView.clipsToBounds = true\n            let textFieldsViewWidth = textAreaWidth\n            var textFieldsViewHeight: CGFloat = 0\n            textFieldsView.frame = CGRect(x: margin * 2,\n                                          y: textAreaPositionY + margin,\n                                          width: textFieldsViewWidth,\n                                          height: textFieldsViewHeight)\n            textFields.enumerated().forEach { index, textField in\n                textField.frame = CGRect(x: margin,\n                                         y: CGFloat(index) * textFieldHeight,\n                                         width: textFieldsViewWidth - (2 * margin),\n                                         height: textFieldHeight)\n                textFieldsView.addSubview(textField)\n                textFieldsViewHeight += textFieldHeight\n                if index > 0 {\n                    let topBorder = CALayer()\n                    topBorder.frame = CGRect(x: -margin,\n                                             y: 0,\n                                             width: textFieldsViewWidth + (margin * 2),\n                                             height: thin)\n                    topBorder.backgroundColor = textFieldBorderColor.cgColor\n                    textField.layer.sublayers = [topBorder]\n                    textField.clipsToBounds = false\n                }\n            }\n            textFieldsView.layer.borderColor = textFieldBorderColor.cgColor\n            textFieldsView.layer.borderWidth = thin\n            textAreaView.addSubview(textFieldsView)\n            textFieldsView.frame.size.height = textFieldsViewHeight\n            textAreaPositionY += textFieldsView.frame.size.height\n        }\n        if hasTitle || hasMessage || hasImageView || hasTextField {\n            textAreaPositionY += (margin * 2)\n            textAreaBackgroundView.backgroundColor = backgroundColor\n        } else {\n            textAreaPositionY = 0\n        }\n        textAreaHeight = textAreaPositionY\n        textAreaViewHeightConstraint.constant = textAreaHeight\n        textAreaVisualEffectViewHeightConstraint.constant = textAreaHeight\n        textAreaBackgroundViewHeightConstraint.constant = textAreaHeight\n        var cornerViewHeight = textAreaHeight\n        var alertViewHeight: CGFloat = 0\n        // button setUp\n        switch style {\n        case .alert where actions.count == 2 && (hasTitle || hasMessage || hasImageView || hasTextField):\n            cornerViewHeight += thin\n            actions.enumerated().forEach { index, action in\n                let rect = CGRect(x: CGFloat(index) * alertViewWidth / 2,\n                                  y: cornerViewHeight,\n                                  width: alertViewWidth / 2,\n                                  height: buttonHeight)\n                action.backgroundView.frame = rect\n                action.backgroundView.backgroundColor = buttonBackgroundColor\n                action.visualEffectView?.frame = rect\n                action.button.frame = rect\n                if let visualEffectView = action.visualEffectView {\n                    cornerView.addSubview(action.backgroundView)\n                    cornerView.addSubview(visualEffectView)\n                }\n                action.button.setTitleColor(buttonTextColor[action.style], for: .normal)\n                action.button.setTitleColor(buttonDisableTextColor[action.style], for: .disabled)\n                action.button.titleLabel?.font = buttonFont[action.style]\n                if index == actions.count - 1 {\n                    action.visualEffectView?.frame.origin.x += thin\n                    action.visualEffectView?.frame.size.width -= thin\n                    action.button.frame.origin.x += thin\n                    action.button.frame.size.width -= thin\n                }\n                action.button.addTarget(self,\n                                        action: #selector(PCLBlurEffectAlertController.buttonWasTouchUpInside(_:)),\n                                        for: .touchUpInside)\n                cornerView.addSubview(action.button)\n            }\n            cornerViewHeight += buttonHeight\n        case .alert, .alertVertical:\n            actions.enumerated().forEach { index, action in\n                cornerViewHeight += thin\n                let rect = CGRect(x: 0,\n                                  y: cornerViewHeight,\n                                  width: alertViewWidth,\n                                  height: buttonHeight)\n                action.backgroundView.frame = rect\n                action.backgroundView.backgroundColor = buttonBackgroundColor\n                action.visualEffectView?.frame = rect\n                action.button.frame = rect\n                if let visualEffectView = action.visualEffectView {\n                    cornerView.addSubview(action.backgroundView)\n                    cornerView.addSubview(visualEffectView)\n                }\n                action.button.setTitleColor(buttonTextColor[action.style], for: .normal)\n                action.button.setTitleColor(buttonDisableTextColor[action.style], for: .disabled)\n                action.button.titleLabel?.font = buttonFont[action.style]\n                action.button.addTarget(self,\n                                        action: #selector(PCLBlurEffectAlertController.buttonWasTouchUpInside(_:)),\n                                        for: .touchUpInside)\n                cornerView.addSubview(action.button)\n                cornerViewHeight += buttonHeight\n            }\n        default:\n            var cancelIndex = -1\n            actions.enumerated().forEach { index, action in\n                switch action.style {\n                case .cancel:\n                    cancelIndex = index\n                default:\n                    cornerViewHeight += thin\n                    let rect = CGRect(x: 0,\n                                      y: cornerViewHeight,\n                                      width: alertViewWidth,\n                                      height: buttonHeight)\n                    action.backgroundView.frame = rect\n                    action.backgroundView.backgroundColor = buttonBackgroundColor\n                    action.visualEffectView?.frame = rect\n                    action.button.frame = rect\n                    if let visualEffectView = action.visualEffectView {\n                        cornerView.addSubview(action.backgroundView)\n                        cornerView.addSubview(visualEffectView)\n                    }\n                    action.button.setTitleColor(buttonTextColor[action.style], for: .normal)\n                    action.button.setTitleColor(buttonDisableTextColor[action.style], for: .disabled)\n                    action.button.titleLabel?.font = buttonFont[action.style]\n                    action.button.addTarget(self,\n                                            action: #selector(PCLBlurEffectAlertController.buttonWasTouchUpInside(_:)),\n                                            for: .touchUpInside)\n                    cornerView.addSubview(action.button)\n                    cornerViewHeight += buttonHeight\n                }\n            }\n            alertViewHeight = cornerViewHeight\n            if cancelIndex >= 0 { // cancel\n                alertViewHeight += margin\n                let action = actions[cancelIndex]\n                let rect = CGRect(x: 0,\n                                  y: alertViewHeight,\n                                  width: alertViewWidth,\n                                  height: buttonHeight)\n                action.backgroundView.frame = rect\n                action.backgroundView.backgroundColor = buttonBackgroundColor\n                action.visualEffectView?.frame = rect\n                action.button.frame = rect\n                if let visualEffectView = action.visualEffectView {\n                    alertView.addSubview(action.backgroundView)\n                    alertView.addSubview(visualEffectView)\n                }\n                action.button.setTitleColor(buttonTextColor[action.style], for: .normal)\n                action.button.setTitleColor(buttonDisableTextColor[action.style], for: .disabled)\n                action.button.titleLabel?.font = buttonFont[action.style]\n                action.button.addTarget(self,\n                                        action: #selector(PCLBlurEffectAlertController.buttonWasTouchUpInside(_:)),\n                                        for: .touchUpInside)\n                action.backgroundView.clipsToBounds = true\n                action.backgroundView.layer.cornerRadius = cornerRadius\n                action.visualEffectView?.clipsToBounds = true\n                action.visualEffectView?.layer.cornerRadius = cornerRadius\n                action.button.clipsToBounds = true\n                action.button.layer.cornerRadius = cornerRadius\n                alertView.addSubview(action.button)\n                alertViewHeight += buttonHeight\n            }\n        }\n        switch style {\n        case .actionSheet:\n            cornerViewHeightConstraint.constant = cornerViewHeight\n        default:\n            alertViewHeight = cornerViewHeight\n        }\n        alertViewHeightConstraint.constant = alertViewHeight\n        view.layoutIfNeeded()\n    }\n    dynamic func buttonWasTouchUpInside(_ sender: UIButton) {\n        sender.isSelected = true\n        let action = actions[sender.tag]\n        dismiss(animated: true) {\n            action.handler?(action)\n        }\n    }\n}\n\n// MARK: - PCLRespondsViewDelegate\nextension PCLBlurEffectAlertController: PCLRespondsViewDelegate {\n    func respondsViewDidTouch(_ view: UIView) {\n        guard isActionSheet else { return }\n        guard let cancelAction = cancelAction else { return }\n        dismiss(animated: true) {\n            cancelAction.handler?(cancelAction)\n        }\n    }\n}\n\n// MARK: - PCLAlertKeyboardNotificationObserver, PCLAlertActionEnabledDidChangeNotificationObserver\nextension PCLBlurEffectAlertController : PCLAlertKeyboardNotificationObserver, PCLAlertActionEnabledDidChangeNotificationObserver {\n    func keyboardWillHide(_ notification: Notification) {\n        keyboardHeight = 0\n        containerViewBottomLayoutConstraint.constant = keyboardHeight\n        UIView.animate(withDuration: 0.3) {\n            self.view.layoutIfNeeded()\n        }\n    }\n    func keyboardWillShow(_ notification: Notification) {\n        guard let userInfo = notification.userInfo as? [String: AnyObject],\n            let keyboardSize = userInfo[UIKeyboardFrameEndUserInfoKey]?.cgRectValue.size else {\n                return\n        }\n        keyboardHeight = keyboardSize.height\n        containerViewBottomLayoutConstraint.constant = -keyboardHeight\n        UIView.animate(withDuration: 0.3) {\n            self.view.layoutIfNeeded()\n        }\n    }\n    func alertActionEnabledDidChange(_ notification: Notification) {\n        actions.forEach { $0.button.isEnabled = $0.isEnabled }\n    }\n}\n\n// MARK: - UIViewControllerTransitioningDelegate\nextension PCLBlurEffectAlertController: UIViewControllerTransitioningDelegate {\n    public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {\n        return PCLBlurEffectAlertTransitionAnimator(present: true)\n    }\n    public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {\n        return PCLBlurEffectAlertTransitionAnimator(present: false)\n    }\n}\n\n// MARK: - UIApplication\nprivate extension UIApplication {\n    var topViewController: UIViewController? {\n        guard var topViewController = UIApplication.shared.keyWindow?.rootViewController else { return nil }\n        while let presentedViewController = topViewController.presentedViewController {\n            topViewController = presentedViewController\n        }\n        return topViewController\n    }\n}\n"
  },
  {
    "path": "Sources/PCLBlurEffectAlert+TransitionAnimator.swift",
    "content": "//\n//  PCLBlurEffectAlertController+Tr.swift\n//  PCLBlurEffectAlert\n//\n//  Created by hiroyuki yoshida on 2017/02/26.\n//\n//\n\nimport UIKit\n\npublic typealias PCLBlurEffectAlertTransitionAnimator = PCLBlurEffectAlert.TransitionAnimator\n\nextension PCLBlurEffectAlert {\n    // MARK: - TransitionAnimator\n    open class TransitionAnimator: NSObject, UIViewControllerAnimatedTransitioning {\n        fileprivate typealias TransitionAnimator = PCLBlurEffectAlert.TransitionAnimator\n        fileprivate static let presentBackAnimationDuration: TimeInterval = 0.45\n        fileprivate static let dismissBackAnimationDuration: TimeInterval = 0.35\n        fileprivate var goingPresent: Bool!\n        init(present: Bool) {\n            super.init()\n            goingPresent = present\n        }\n        open func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {\n            if goingPresent == true {\n                return TransitionAnimator.presentBackAnimationDuration\n            } else {\n                return TransitionAnimator.dismissBackAnimationDuration\n            }\n        }\n        open func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {\n            if goingPresent == true {\n                presentAnimation(transitionContext)\n            } else {\n                dismissAnimation(transitionContext)\n            }\n        }\n    }\n}\n\n// MARK: - Extension\nprivate extension PCLBlurEffectAlert.TransitionAnimator {\n    func presentAnimation(_ transitionContext: UIViewControllerContextTransitioning) {\n        guard let alertController = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.to) as? PCLBlurEffectAlertController else {\n            transitionContext.completeTransition(false)\n            return\n        }\n        let containerView = transitionContext.containerView\n        containerView.backgroundColor = .clear\n        containerView.addSubview(alertController.view)\n        alertController.overlayView.alpha = 0\n        let animations: (() -> Void)\n        switch alertController.style {\n        case .actionSheet:\n            alertController.alertView.transform = CGAffineTransform(translationX: 0,\n                                                                    y: alertController.alertView.frame.height)\n            animations = {\n                alertController.overlayView.alpha = 1\n                alertController.alertView.transform = CGAffineTransform(translationX: 0, y: -10)\n            }\n        default:\n            alertController.cornerView.subviews.forEach { $0.alpha = 0 }\n            alertController.alertView.center = alertController.view.center\n            alertController.alertView.transform = CGAffineTransform(scaleX: 0.5, y: 0.5)\n            animations = {\n                alertController.overlayView.alpha = 1\n                alertController.cornerView.subviews.forEach { $0.alpha = 1 }\n                alertController.alertView.transform = CGAffineTransform(scaleX: 1.05, y: 1.05)\n            }\n        }\n        UIView.animate(withDuration: transitionDuration(using: transitionContext) * (5 / 9), animations: animations) { finished in\n            guard finished else { return }\n            let animations = {\n                alertController.alertView.transform = CGAffineTransform.identity\n            }\n            UIView.animate(withDuration: self.transitionDuration(using: transitionContext) * (4 / 9), animations: animations) { finished in\n                guard finished else { return }\n                let cancelled = transitionContext.transitionWasCancelled\n                if cancelled {\n                    alertController.view.removeFromSuperview()\n                }\n                transitionContext.completeTransition(!cancelled)\n            }\n        }\n    }\n    func dismissAnimation(_ transitionContext: UIViewControllerContextTransitioning) {\n        guard let alertController = transitionContext.viewController(forKey: UITransitionContextViewControllerKey.from) as? PCLBlurEffectAlertController else {\n            transitionContext.completeTransition(false)\n            return\n        }\n        let animations = {\n            alertController.overlayView.alpha = 0\n            switch alertController.style {\n            case .actionSheet:\n                alertController.containerView.transform = CGAffineTransform(translationX: 0,\n                                                                            y: alertController.alertView.frame.height)\n            default:\n                alertController.alertView.transform = CGAffineTransform(scaleX: 0.8, y: 0.8)\n                alertController.cornerView.subviews.forEach { $0.alpha = 0 }\n            }\n        }\n        UIView.animate(withDuration: transitionDuration(using: transitionContext), delay: 0, usingSpringWithDamping: 1, initialSpringVelocity: 0, options: UIViewAnimationOptions(), animations: animations) { finished in\n            guard finished else { return }\n            transitionContext.completeTransition(!transitionContext.transitionWasCancelled)\n        }\n    }\n}\n"
  },
  {
    "path": "Sources/PCLBlurEffectAlert.h",
    "content": "//\n//  PCLBlurEffectAlert.h\n//  PCLBlurEffectAlert\n//\n//  Created by hiroyuki yoshida on 2016/05/11.\n//  Copyright © 2016年 hiroyuki yoshida. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n//! Project version number for PCLBlurEffectAlert.\nFOUNDATION_EXPORT double PCLBlurEffectAlertVersionNumber;\n\n//! Project version string for PCLBlurEffectAlert.\nFOUNDATION_EXPORT const unsigned char PCLBlurEffectAlertVersionString[];\n\n// In this header, you should import all the public headers of your framework using statements like #import <PCLBlurEffectAlert/PublicHeader.h>\n\n\n"
  },
  {
    "path": "Sources/PCLBlurEffectAlert.swift",
    "content": "//\n//  PCLBlurEffectAlert.swift\n//  Pods\n//\n//  Created by hryk224 on 2015/10/14.\n//\n//\n\nimport UIKit\n\nopen class PCLBlurEffectAlert {\n    public enum ActionStyle {\n        case `default`, cancel, destructive\n        var isCancel: Bool {\n            return self == .cancel\n        }\n    }\n    public enum ControllerStyle {\n        case actionSheet, alert, alertVertical\n    }\n}\n\n// MARK: - RespondsView\nextension PCLBlurEffectAlert {\n    final class RespondsView: UIView {\n        weak var delegate: PCLRespondsViewDelegate?\n        required init?(coder aDecoder: NSCoder) {\n            super.init(coder: aDecoder)\n        }\n        override init(frame: CGRect) {\n            super.init(frame: frame)\n        }\n        override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {\n            super.touchesEnded(touches, with: event)\n            delegate?.respondsViewDidTouch(self)\n        }\n    }\n}\n\n// MARK: - PCLRespondsViewDelegate\nprotocol PCLRespondsViewDelegate: class {\n    func respondsViewDidTouch(_ view: UIView)\n}\n\n// MARK: - NotificationManager\nextension PCLBlurEffectAlert {\n    struct NotificationManager {\n        static let shared = PCLBlurEffectAlert.NotificationManager()\n        fileprivate let notificationCenter = NotificationCenter.default\n    }\n}\n\n// MARK: - keyboardWillShow/Hide\n@objc protocol PCLAlertKeyboardNotificationObserver: class {\n    func keyboardWillShow(_ notification: Notification)\n    func keyboardWillHide(_ notification: Notification)\n}\n\nextension PCLBlurEffectAlert.NotificationManager {\n    func addKeyboardNotificationObserver(_ observer: PCLAlertKeyboardNotificationObserver) {\n        notificationCenter.addObserver(observer,\n                                       selector: #selector(PCLAlertKeyboardNotificationObserver.keyboardWillShow(_:)),\n                                       name: Notification.Name.UIKeyboardWillShow,\n                                       object: nil)\n        notificationCenter.addObserver(observer,\n                                       selector: #selector(PCLAlertKeyboardNotificationObserver.keyboardWillHide(_:)),\n                                       name: Notification.Name.UIKeyboardWillHide,\n                                       object: nil)\n    }\n    func removeKeyboardNotificationObserver(_ observer: PCLAlertKeyboardNotificationObserver) {\n        notificationCenter.removeObserver(observer,\n                                          name: Notification.Name.UIKeyboardWillShow,\n                                          object: nil)\n        notificationCenter.removeObserver(observer,\n                                          name: Notification.Name.UIKeyboardWillHide,\n                                          object: nil)\n    }\n    func postKeyboardWillShowNotification() {\n        notificationCenter.post(Notification(name: Notification.Name.UIKeyboardWillShow,\n                                             object: nil))\n    }\n    func postKeyboardWillHideNotification() {\n        notificationCenter.post(Notification(name: Notification.Name.UIKeyboardWillHide,\n                                             object: nil))\n    }\n}\n\n\n// MARK: - AlertActionEnabledDidChange\n@objc protocol PCLAlertActionEnabledDidChangeNotificationObserver: class {\n    func alertActionEnabledDidChange(_ notification: Notification)\n}\n// MARK: - private\nextension PCLBlurEffectAlert.NotificationManager {\n    private typealias Manager = PCLBlurEffectAlert.NotificationManager\n    private static let AlertActionEnabledDidChangeNotification = \"AlertActionEnabledDidChangeNotification\"\n    func addAlertActionEnabledDidChangeNotificationObserver(_ observer: PCLAlertActionEnabledDidChangeNotificationObserver) {\n        notificationCenter.addObserver(observer,\n                                       selector: #selector(PCLAlertActionEnabledDidChangeNotificationObserver.alertActionEnabledDidChange(_:)),\n                                       name: Notification.Name(rawValue: Manager.AlertActionEnabledDidChangeNotification),\n                                       object: nil)\n    }\n    func removeAlertActionEnabledDidChangeNotificationObserver(_ observer: PCLAlertActionEnabledDidChangeNotificationObserver) {\n        notificationCenter.removeObserver(observer,\n                                          name: Notification.Name(rawValue: Manager.AlertActionEnabledDidChangeNotification),\n                                          object: nil)\n    }\n    func postAlertActionEnabledDidChangeNotification() {\n        notificationCenter.post(Notification(name: Notification.Name(rawValue: Manager.AlertActionEnabledDidChangeNotification),\n                                             object: nil,\n                                             userInfo: nil))\n    }\n}\n"
  }
]