Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 2.08 KB

README.md

File metadata and controls

44 lines (26 loc) · 2.08 KB

SPAlertView

Customized Alert or Prompt view for iOS comfortable with Swift 3.0

Screenshot

Installation

simple way to show alert view

Just put the below code snippet to your class

    alertView = AlertVw(title:"Congratulations!", description:"You have registered successfully", image:#imageLiteral(resourceName: "success"))
    alertView.show(animated: true)

Properties of SPAlertView

    alertView.setTitleFont(font:UIFont(name: "Futura", size: 20)!)                      // set title label font
    alertView.setTitleColor(color:UIColor.black)                                        // set title label color
    alertView.setDescriptionFont(font:UIFont(name: "Futura", size: 17)!)                // set description label font
    alertView.setDescriptionColor(color:UIColor.darkGray)                               // set description label color
    alertView.setBtnTitle(name: "Done")                                                 // set done button title
    alertView.setBtnBGColor(color: UIColor.black)                                       // set done button background color
    alertView.setBtnTxtColor(color: UIColor.black)                                      // set done button text color
    alertView.setBtnFont(font:UIFont(name: "Futura", size: 17)!)                        // set done button text font
    alertView.setViewBGColor(color: UIColor.black)                                      // set alert view background color
    alertView.clearBackground = clearBG                                                 // set background color
    alertView.appearFrom = direction                                                    // set direction of alert view

Authors

Ssowri1

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details

Support or Contact

Having trouble with Pages? Kindly contact support and we’ll help you sort it out.