acani / Alerts

Alert & confirm methods for UIViewController

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Swift 100.0%