From f78cec17ed94b557dd2107fd525a252620b6b879 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 11 Sep 2020 13:50:55 +0800 Subject: [PATCH] update --- Example-Old/Example/TestAlertVC.swift | 6 +++++- Example-Old/Example/TestGuardVC.swift | 1 - Example-Old/Example/TestToastVC.swift | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Example-Old/Example/TestAlertVC.swift b/Example-Old/Example/TestAlertVC.swift index e9de230..f271d08 100644 --- a/Example-Old/Example/TestAlertVC.swift +++ b/Example-Old/Example/TestAlertVC.swift @@ -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) diff --git a/Example-Old/Example/TestGuardVC.swift b/Example-Old/Example/TestGuardVC.swift index 1ec822f..49d951c 100644 --- a/Example-Old/Example/TestGuardVC.swift +++ b/Example-Old/Example/TestGuardVC.swift @@ -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" diff --git a/Example-Old/Example/TestToastVC.swift b/Example-Old/Example/TestToastVC.swift index 6ff4688..9cd9109 100644 --- a/Example-Old/Example/TestToastVC.swift +++ b/Example-Old/Example/TestToastVC.swift @@ -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()