Alertify 4.0.8

Alertify 4.0.8

karthik 维护。



Alertify 4.0.8

Alertify

Version License Platform

特性

  • 方法链。
  • 可以一次性添加多个操作。
  • 支持 UITextField。
  • 支持图片。
  • 支持 iPad(操作表、弹窗)。
  • 可以不使用私有 API 修改标题、消息、按钮文本和背景颜色。
  • 可以不使用私有 API 修改标题、消息的对齐方式。

要求

  • iOS 10.0+
  • Xcode 11+
  • Swift 4.2+

安装

Alertify 可以通过 CocoaPods 获取。要安装它,只需将以下行添加到 Podfile:

pod 'Alertify'

Swift 包管理器

NotificationBubbles 可以通过 Swift 包管理器获取。要安装它,只需将以下依赖项添加到 Package.swift:

.package(url: "https://github.com/karthikAdaptavant/Alertify.git", from: "4.0.7")

使用方法

  Alertify.actionSheet(message: nil, anchorView: sender)
	.action(.default("Hello"), image: #imageLiteral(resourceName: "chat"))
	.action(.default("Info"), image: #imageLiteral(resourceName: "info"))
	.action(.cancel("None"))
	.finally { action, index in  }
	.show(on: self)

作者

karthikAdaptavant, [email protected]

许可证

Alertify 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。