Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 855 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 855 Bytes

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.