| | |
| | | |
| | | //提示框 |
| | | func alert(msg: String) { |
| | | // hiddenHUD() |
| | | SVProgressHUD.showInfo(withStatus: msg,maskType: .clear) |
| | | SVProgressHUD.showInfo(withStatus: msg) |
| | | } |
| | | |
| | | func alertError(msg:String){ |
| | | // hiddenHUD() |
| | | SVProgressHUD.showError(withStatus: msg,maskType: .clear) |
| | | SVProgressHUD.showError(withStatus: msg) |
| | | } |
| | | |
| | | func alertSuccess(msg:String){ |
| | | // hiddenHUD() |
| | | SVProgressHUD.showSuccess(withStatus: msg,maskType: .clear) |
| | | SVProgressHUD.showSuccess(withStatus: msg) |
| | | } |
| | | |
| | | func showHUD(_ text:String? = nil){ |
| | | SVProgressHUD.setContainerView(sceneDelegate?.window) |
| | | SVProgressHUD.show(withStatus: text) |
| | | } |
| | | |