Latest 1.0.4
Homepage https://github.com/ousikou/FreeAlert
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Feature

  • Show your customized alert with two lines
    • Create your customized view
    • Show alert with your view

Usage

FreeAlert FreeAlert FreeAlert
import FreeAlert

// Create Customized View
let imgView = UIImageView.init(frame: CGRect(x: 0, y: 0, width: 300, height: 150))
imgView.contentMode = .scaleAspectFit
imgView.image = UIImage.init(named: "test")

// Show Alert
FreeAlert.shared.show(in: self,
                      alertTitle: "Image Alert",
                      alertMessage: "I'm a alert with UIImageView",
                      additionView: imgView,
                      okInfo: ("Ok", {
                            print("Ok Button Tapped.")
                        }), cancelInfo: ("Cancel", {
                            print("Cancel Button Tapped.")
                        }),tapDismissEnable: true)

CocoaPod

# Podfile
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'FreeAlert'
end

Replace YOUR_TARGET_NAME and then, in the Podfile directory, type:

$ pod install

Latest podspec

{
    "name": "FreeAlert",
    "version": "1.0.4",
    "summary": "Show Alert with your customized view.",
    "homepage": "https://github.com/ousikou/FreeAlert",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ousikou": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/ousikou/FreeAlert.git",
        "tag": "1.0.4"
    },
    "source_files": "FreeAlert/**/*.{swift,xib}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This