This commit is contained in:
DDIsFriend
2023-08-18 17:28:57 +08:00
commit f0e8a1709d
4282 changed files with 192396 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
//
// DDProgressHUD.swift
// DDProgressHUDKit_Private
//
// Created by on 2023/8/7.
//
import Foundation
extension UIView {
public func dd_showHUD() {
let hud = MBProgressHUD.showAdded(to: self, animated: true)
hud.bezelView.color = UIColor.black
hud.bezelView.style = .solidColor
hud.contentColor = UIColor.white
hud.show(animated: true)
}
public func dd_hideHUD() {
let hud = MBProgressHUD.forView(self)
hud?.hide(animated: true)
}
}