This commit is contained in:
xaoxuu 2020-09-11 13:50:55 +08:00
parent 5f9b0d48e2
commit f78cec17ed
3 changed files with 10 additions and 2 deletions

View File

@ -64,7 +64,11 @@ class TestAlertVC: BaseListVC {
vm.addSection(title: "常用示例") { (sec) in
// MARK: 1
sec.addRow(title: "正在同步写法1", subtitle: "创建的时候就布局好了。") {
Alert.push("loading", scene: .sync)
Alert.push("loading", scene: .sync2) { (vc) in
vc.update { (vm) in
vm.title = "正在同步"
}
}
loadingSuccessAfter2Seconds()
}
// MARK: 2

View File

@ -48,7 +48,6 @@ class TestGuardVC: BaseListVC {
vm.add(message: "功能1功能2...")
vm.add(subTitle: "价格")
vm.add(message: "只需一次性付费$2999即可永久享用。")
vm.add(message: "只需一次性付费$2999即可永久享用。")
vm.add(action: .destructive, title: "购买") { [weak vc] in
Alert.push(scene: .buy) { (vc) in
vc.identifier = "confirm"

View File

@ -31,6 +31,11 @@ class TestToastVC: BaseListVC {
// Do any additional setup after loading the view.
vm.addSection(title: "简单的例子") { (sec) in
// MARK: Hello World
sec.addRow(title: "Hello World") {
Toast.push(title: "Hello World", message: "This is a test message from ProHUD.")
}
// MARK:
sec.addRow(title: "场景:正在加载(没有进度显示)") {
Toast.push(scene: .loading).startRotate()