mirror of https://github.com/xaoxuu/ProHUD
update
This commit is contained in:
parent
8bd68d36f6
commit
f0e6cb2fda
|
@ -44,6 +44,9 @@ class TestToastVC: BaseListVC {
|
||||||
}.startRotate()
|
}.startRotate()
|
||||||
simulateSync()
|
simulateSync()
|
||||||
} else if row == 1 {
|
} else if row == 1 {
|
||||||
|
if let _ = Toast.find("progress").last {
|
||||||
|
|
||||||
|
} else {
|
||||||
Toast.push("progress") { (t) in
|
Toast.push("progress") { (t) in
|
||||||
t.update { (vm) in
|
t.update { (vm) in
|
||||||
vm.scene = .loading
|
vm.scene = .loading
|
||||||
|
@ -75,6 +78,8 @@ class TestToastVC: BaseListVC {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else if row == 2 {
|
} else if row == 2 {
|
||||||
let t = Toast.push(scene: .success, title: "同步成功", message: "点击查看详情")
|
let t = Toast.push(scene: .success, title: "同步成功", message: "点击查看详情")
|
||||||
t.didTapped { [weak self, weak t] in
|
t.didTapped { [weak self, weak t] in
|
||||||
|
|
|
@ -15,6 +15,6 @@ extension String {
|
||||||
|
|
||||||
extension ProHUD {
|
extension ProHUD {
|
||||||
static var safeAreaInsets: UIEdgeInsets {
|
static var safeAreaInsets: UIEdgeInsets {
|
||||||
return Inspire.shared.screen.updatedSafeAreaInsets
|
return Inspire.shared.screen.safeAreaInsets
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue