Skip to content
/ myAlert Public

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

Notifications You must be signed in to change notification settings

koust/myAlert

Repository files navigation

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.

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published