| 12345678910111213141516171819202122232425262728293031 |
- //
- // QSLLoading.swift
- // QuickSearchLocation
- //
- // Created by Destiny on 2024/12/10.
- //
- import ProgressHUD
- class QSLLoading {
-
- static func show() {
- ProgressHUD.animate(nil, .circleStrokeSpin, interaction: false)
- }
-
- static func showWithCancel() {
- ProgressHUD.animate(nil, .circleStrokeSpin, interaction: true)
- }
-
- static func hide() {
- ProgressHUD.dismiss()
- }
-
- static func success(text: String) {
- ProgressHUD.succeed(text, interaction: false, delay: 2)
- }
-
- static func error(text: String) {
- ProgressHUD.error(text, interaction: false, delay: 2)
- }
- }
|