Files
OrderScheduling/Pods/DDProgressHUDKit_Private/DDProgressHUDKit_Private/Classes/DDProgressHUD.swift
DDIsFriend f0e8a1709d initial
2023-08-18 17:28:57 +08:00

24 lines
525 B
Swift

//
// 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)
}
}