BlockAlert 3.0.0

BlockAlert 3.0.0

mkarchive 维护。



  • mkarchive

BlockAlert

Version License Platform

一个小型的 UIAlertController 包装器。

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),
  )
}

安装

CocoaPods

pod 'BlockAlert'

Swift Package Manager

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

许可权

BlockAlert 在 MIT 许可下可用。更多信息请参阅 LICENSE 文件。