ASCustomAlertView 1.0.3.2

ASCustomAlertView 1.0.3.2

测试经过测试
语言语言 SwiftSwift
许可证 MIT
发布最新版本2017年8月
SwiftSwift 版本3.0
SPM支持 SPM

Anton Stremovskiy 维护。



  • 作者
  • Anton Stremovskiy 和 Max Rachytskyy

ASCustomAlertView

具有渐变背景动画和自定义按钮的自定义动画 alertViewcontroller

支持 iOS 9 及以上版本

安装

pod 'ASCustomAlertView'

使用

import ASCustomAlertView
   @IBAction func createAlert() {
       showPopUpAction(text: "This is Header", message: "alert message should be here", buttons: [AlertButton.okButton])
   }
   
   @IBAction func createAlert2() {
       let button = AlertButton(title: "White Text", backColor: .asCoolBlueTwo, textColor: .asWhite)
       button.action = {
           debugPrint("Button 2 clicked")
       }
       showPopUpAction(text: "Header", message: "alert message should be here", buttons: [button])
   }

   
   func showPopUpAction(text: String, message: String? = nil, buttons: [AlertButton]) {
       presentPopUp(with: NSMutableAttributedString.h1(string: text), message: NSMutableAttributedString.m1(string: message), image: UIImage(named: "placeholder"), buttonsLayout: .horizontal, buttons: buttons)
   }

Screenshot

待办事项

  • [ ] 自定义动画

作者

Anton Stremovskiy

联系方式

@anton__dev