Hi! MyAlert is an alertview. Shortly , show notifications in the app. It is simple to use and easy to develop.
- iOS 9.0+
- Xcode 9.0
- Swift 4
You can use CocoaPods to install myAlert
by adding it to your Podfile
:
platform :ios, '9.0'
use_frameworks!
pod 'myAlert'
- Download and drop
MyAlertController.swift
in your project. - Congratulations!
let myAlert = MyAlertController()
myAlert.yourView = self.view
myAlert.bgColor = UIColor.red
myAlert.textColor = UIColor.white
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title",delay:3)
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title")
Notification closure time can be set
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title",delay:3)
You can be add image to alertView
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title",mImage:UIImage(named:"info")!,delay:3)
myAlert.close()
public var bgColor
public var textColor
public var fontName:String
public var titleFontSize: CGFloat
public var subTitleFontSize: CGFloat
public var alertRadius:CGFloat
public var yourView: UIView?
- 1.0 first commit