Swift compiler treats MBProgressHUD.HUDForView(_ view:) as erroneous method, suggesting a fix-it that replaces the call with .init(with view:)
Adding an NS_SWIFT_NAME macro with non-capitalized function name that is exported to swift solves the issue (and makes swift API more intuitive)
Swift compiler treats
MBProgressHUD.HUDForView(_ view:)
as erroneous method, suggesting a fix-it that replaces the call with.init(with view:)
Adding anNS_SWIFT_NAME
macro with non-capitalized function name that is exported to swift solves the issue (and makes swift API more intuitive)