我正在使用MBProgressHUD,并希望将bezelView设为br透明。
import UIKit
import MBProgressHUD
class ProgressBarManager {
func showProgressBar() {
guard let testView = UIApplication.shared.windows.last else { return }
let hud = MBProgressHUD.showAdded(to: testView, animated: true)
hud.bezelView.layer.cornerRadius = 5
hud.bezelView.backgroundColor = .clear
hud.backgroundView.style = .solidColor
hud.backgroundView.color = UIColor(white: 0, alpha: 0.3)
}
}
但是bezelView仍然显示:
是否可以隐藏它?
let hud = MBProgressHUD.showAdded(to: self.view, animated: true)
hud.backgroundColor = UIColor.clear
hud.bezelView.backgroundColor = UIColor.clear
hud.bezelView.color = UIColor.clear
hud.bezelView.style = .solidColor