Skip to content

Customized Alert or Prompt view for iOS comfortable with Swift 3.0

License

Notifications You must be signed in to change notification settings

ssowri1/SPAlertView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Customized Alert or Prompt view for iOS comfortable with Swift 3.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages