Skip to content
/ Alerts Public

Alert & confirm methods for UIViewController

Notifications You must be signed in to change notification settings

acani/Alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alerts

Alert & confirm methods for UIViewController

Setup: How to add a Git repository to your Xcode project

Usage:

  • UIViewController.alertTitle(_:message:)

    alertTitle("Alert", message: "This is an alert with an OK button.")
    alertTitle("Alert", message: "This is an alert with an OK button.") { _ in
      // Code here runs after the user has tapped OK.
    }
  • UIViewController.confirmTitle(_:message:)

    confirmTitle("Confirm", message: "This is an alert with No & Yes buttons.")
    confirmTitle("Confirm", message: "This is an alert with No & Yes buttons.") { _ in
      // Code here runs after the user has tapped Yes.
    }

Released under the Unlicense.

About

Alert & confirm methods for UIViewController

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages