jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

Fix swift compiler error #572

Closed kervich closed 5 years ago

kervich commented 5 years ago

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)