【文件属性】:
文件名称:AlertDSL:这是基于基于UIKit的@_functionBuilder的UIAlertController的声明式DSL包装器
文件大小:18KB
文件格式:ZIP
更新时间:2021-03-31 23:31:53
Swift
警报DSL
这是基于UIKit的基于@_functionBuilder的UIAlertController的声明性DSL包装器。
安装
支持Swift 5.1和更高版本,iOS 13+。
迅捷软件包管理器
.package(url: "https://github.com/artemch/AlertDSL.git", from: "0.1.0")
可可豆
pod 'AlertDSL', :git => "https://github.com/artemch/AlertDSL.git", :tag => '0.1.0'
例子
警报示例:
Alert {
Title ( " Alert title " )
Message ( " Alert Message " )
Action ( title : " Ok " ) { print ( " Ok action " )
【文件预览】:
AlertDSL-main
----Sources()
--------AlertDSL()
----.swiftpm()
--------xcode()
----AlertDSL.podspec(714B)
----Tests()
--------LinuxMain.swift(118B)
--------AlertDSLTests()
----LICENSE(1KB)
----README.md(1KB)
----Package.swift(1KB)
----AlertDSL-Example()
--------ViewController.swift(1KB)
--------Info.plist(2KB)
--------AppDelegate.swift(1KB)
--------Base.lproj()
--------Assets.xcassets()
--------SceneDelegate.swift(2KB)
----.gitignore(3KB)