mirror of https://github.com/xaoxuu/ProHUD
update
This commit is contained in:
parent
5f9b0d48e2
commit
f78cec17ed
|
@ -64,7 +64,11 @@ class TestAlertVC: BaseListVC {
|
||||||
vm.addSection(title: "常用示例") { (sec) in
|
vm.addSection(title: "常用示例") { (sec) in
|
||||||
// MARK: 同步成功(写法1)
|
// MARK: 同步成功(写法1)
|
||||||
sec.addRow(title: "正在同步(写法1)", subtitle: "创建的时候就布局好了。") {
|
sec.addRow(title: "正在同步(写法1)", subtitle: "创建的时候就布局好了。") {
|
||||||
Alert.push("loading", scene: .sync)
|
Alert.push("loading", scene: .sync2) { (vc) in
|
||||||
|
vc.update { (vm) in
|
||||||
|
vm.title = "正在同步"
|
||||||
|
}
|
||||||
|
}
|
||||||
loadingSuccessAfter2Seconds()
|
loadingSuccessAfter2Seconds()
|
||||||
}
|
}
|
||||||
// MARK: 同步成功(写法2)
|
// MARK: 同步成功(写法2)
|
||||||
|
|
|
@ -48,7 +48,6 @@ class TestGuardVC: BaseListVC {
|
||||||
vm.add(message: "功能1功能2...")
|
vm.add(message: "功能1功能2...")
|
||||||
vm.add(subTitle: "价格")
|
vm.add(subTitle: "价格")
|
||||||
vm.add(message: "只需一次性付费$2999即可永久享用。")
|
vm.add(message: "只需一次性付费$2999即可永久享用。")
|
||||||
vm.add(message: "只需一次性付费$2999即可永久享用。")
|
|
||||||
vm.add(action: .destructive, title: "购买") { [weak vc] in
|
vm.add(action: .destructive, title: "购买") { [weak vc] in
|
||||||
Alert.push(scene: .buy) { (vc) in
|
Alert.push(scene: .buy) { (vc) in
|
||||||
vc.identifier = "confirm"
|
vc.identifier = "confirm"
|
||||||
|
|
|
@ -31,6 +31,11 @@ class TestToastVC: BaseListVC {
|
||||||
// Do any additional setup after loading the view.
|
// Do any additional setup after loading the view.
|
||||||
|
|
||||||
vm.addSection(title: "简单的例子") { (sec) in
|
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: 场景:正在加载(没有进度显示)
|
// MARK: 场景:正在加载(没有进度显示)
|
||||||
sec.addRow(title: "场景:正在加载(没有进度显示)") {
|
sec.addRow(title: "场景:正在加载(没有进度显示)") {
|
||||||
Toast.push(scene: .loading).startRotate()
|
Toast.push(scene: .loading).startRotate()
|
||||||
|
|
Loading…
Reference in New Issue