Closed arror closed 6 years ago
This method will be mapped to a convenience constructor in Swift.
if let hud = MBProgressHUD.init(for: self.base.view) {
return hud
} else {
let hud = MBProgressHUD()
self.base.view.addSubview(hud)
return hud
}
Renaming will solve the problem, that this method is not exported/bridged to swift. HUDForView is NOT a convenient constructor but a lookup method. As I commented here: https://github.com/jdg/MBProgressHUD/issues/450
Fix method for Swift