Latest 1.0.2
Homepage https://github.com/koust/myAlert
License MIT License
Platforms ios 9.0, requires ARC
Authors

Xcode 9.0+
iOS 9.0+
Swift 4.0+
CocoaPods
Build Status

Welcome to MyAlert!

Hi! MyAlert is an alertview. Shortly , show notifications in the app. It is simple to use and easy to develop.

myAlert

Requirements

  • iOS 9.0+
  • Xcode 9.0
  • Swift 4

Installation

CocoaPods

You can use CocoaPods to install myAlert by adding it to your Podfile:

    platform :ios, '9.0'
    use_frameworks!
    pod 'myAlert'

Manually

  1. Download and drop MyAlertController.swift in your project.
  2. Congratulations!

Usage

    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)

Features

The Basics

     myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title")

Delay

Notification closure time can be set

     myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title",delay:3)

Image

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)

Close

     myAlert.close()

Customization

    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?

Release History

  • 1.0
    first commit

Latest podspec

{
    "name": "myAlert",
    "version": "1.0.2",
    "summary": "MyAlert is an alertview. Shortly , show notifications in the app. It is simple to use and easy to develop.",
    "license": {
        "type": "MIT License",
        "file": "LICENSE"
    },
    "homepage": "https://github.com/koust/myAlert",
    "screenshots": "https://github.com/koust/myAlert/raw/master/gorsel.gif",
    "authors": {
        "koust": "https://github.com/koust"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source": {
        "git": "https://github.com/koust/myAlert.git",
        "tag": "1.0.2"
    },
    "source_files": "myAlert/MyAlertController.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This