使用 Swift 对视图的简单警报

河野警报

iOS 徽章 iOS 徽章 iOS 徽章

河野警报

  • 一个简单的视图警报..

//One Button Alert
HanoAlert(title: "Title", message: "Message", confirm: "OK", font: nil, buttonStyle: .oneButton, completionHandler: nil)
            .showAlert(view)
    
//Two Button Alert
HanoAlert(title: "Title", message: "Message", confirm: "OK", cancel: "Cancel", font: nil, buttonStyle: .twoButton, completionHandler: nil)
            .showAlert(view)

Requirements

  • iOS 13.0
  • Swift 5

Installation

Swift Package Manager

https://github.com/Glsme/HanoAlert.git

Author

License

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

GitHub

点击跳转