Latest0.1.0
Homepagehttps://github.com/abadikaka/MASCoolAlertView
LicenseMIT
Platformsios 8.0
Authors,

CI Status
Version
License
Platform

Description

A simple and customizable Alert View and easy to use.
What does it offer ?

  • custom title bar
  • custom footer button
  • custom view body
  • custom close button

MASCoolAlertView
MASCoolAlertView

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

Initialize the MASCoolAlertView

self.newAlert = MASCoolAlertView(height: 200, width: 200, cornerRadius: 10, backgroundColor: .yellow)

add to the subview

self.view.addSubview(newAlert!)

set the title bar

self.newAlert!.setTitleBar(height: 50, backgroundColor: .green, titleColor: .blue, titleText: "Title Text")

set the title bar border

self.newAlert!.setTitleBarBorder(borderWidth: 1, borderColor: .red)

create the close button

self.newAlert!.createCloseButton(tintColor: .red, imageNamed: "close-circular.png", buttonSize: 24)

set the footer button

self.newAlert!.setFooterButton(buttonText: "Close", buttonColor: .black, buttonTextColor: .red, height: 50)

set the custom footer button handler

self.newAlert!.handleBottomButton = handleButton

set the body view using custom body

let newView = UIView(frame: CGRect(x: 10, y: self.newAlert!.topView!.bounds.maxY + 10, width: self.newAlert!.bounds.height - 20, height: self.newAlert!.bounds.height/3))
newView.backgroundColor = .blue

set the body content either using bodyText — default — or using custom body above

self.newAlert!.setBodyContent(bodyBackgroundColor: .clear, bodyTextColor: .black, bodyText: "Hello This is Text Field", bodyView: nil)

show the alert with duration delay and options effect (curveEaseIn, curveEaseOut, curveEaseInOut, specialCurve)

self.newAlert!.show(duration: 0.5, delay: 0.0, options: .curveEaseIn)

Installation

MASCoolAlertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MASCoolAlertView'

Author

abadikaka, [email protected]
Michael Abadi Santoso, [email protected]

License

MASCoolAlertView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MASCoolAlertView",
    "version": "0.1.0",
    "summary": "Cool Alert View created by Michael Abadi Santoso.",
    "description": "Example of Alert View with different animation and customizable properties. This alert view is called MASCoolAlertView created by Michael Abadi Santoso. People can use it for showing their alert view easily and customize the appearance of the alert view",
    "homepage": "https://github.com/abadikaka/MASCoolAlertView",
    "screenshots": [
        "https://imgur.com/pW3SAk1.jpg",
        "https://imgur.com/OTf8k64.jpg"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "abadikaka": "[email protected]",
        "Michael Abadi Santoso": "[email protected]"
    },
    "source": {
        "git": "https://github.com/abadikaka/MASCoolAlertView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MASCoolAlertView/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This