https://github.com/koust/myalert
myAlert is an alertview. Shortly , show notifications in the app. It is simple to use and easy to develop.
https://github.com/koust/myalert
alert alertview cocapods swift4
Last synced: about 1 month ago
JSON representation
myAlert is an alertview. Shortly , show notifications in the app. It is simple to use and easy to develop.
- Host: GitHub
- URL: https://github.com/koust/myalert
- Owner: koust
- Created: 2018-07-15T18:12:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T17:25:34.000Z (almost 7 years ago)
- Last Synced: 2025-04-13T14:07:43.296Z (about 1 month ago)
- Topics: alert, alertview, cocapods, swift4
- Language: Swift
- Homepage:
- Size: 570 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README




[](https://travis-ci.org/TBXark/PinterestSegment)# 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](http://cocoapods.org/) to install `myAlert` by adding it to your `Podfile`:```ruby
platform :ios, '9.0'
use_frameworks!
pod 'myAlert'
```## Manually
1. Download and drop ```MyAlertController.swift``` in your project.
2. Congratulations!# Usage
```swift
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
```swift
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title")
```
### Delay
Notification closure time can be set
```swift
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
```swift
myAlert.show(title:"For example alert view and title",subtitle:"Here is the sub title",mImage:UIImage(named:"info")!,delay:3)
```
### Close
```swift
myAlert.close()
```
### Customization
```swift
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