BlockAlert 3.0.0

BlockAlert 3.0.0

Maintained by mkarchive.



  • By
  • mkarchive

BlockAlert

Version License Platform

a small UIAlertController wrapper.

let alert = UIAlertController(.alert) {
  $0.title = "title"
  $0.message = "message"

  $0.addAction(title: "Ok", style: .default)
  $0.addAction(title: "Cancel", style: .cancel)

  // or...
  $0.addActions(
    .init(title: "Ok", style: .default),
    .init(title: "Cancel", style: .cancel),
  )
}

Installation

CocoaPods

pod 'BlockAlert'

Swift Package Manager

dependencies: [
  .package(
    url: "https://github.com/mkarchive/BlockAlert.git", 
    .upToNextMajor(from: "3.0.0")
  )
]

License

BlockAlert is available under the MIT license. See the LICENSE file for more info.