jdg / MBProgressHUD

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

Swift 3 Deprecated warnings #431

Closed AnthonyMDev closed 6 years ago

AnthonyMDev commented 8 years ago

When using this library from a Swift 3 target, I'm getting warnings for deprecated methods on show(animated:) and hide(animated:).

'show' is deprecated. Use showAnimated: instead. 'hide' is deprecated. Use hideAnimated: instead.

This is because Swift 3 converts the syntax for the Objective-C method showAnimated: and hideAnimated: to show(animated:) and hide(animated:) respectively.

In Swift 3, the deprecated method syntax is exactly the same as the new method's syntax. I'm hoping we can get a version where the deprecated methods are removed, or something is changed to remove these warnings soon. Having a bunch of warnings in my project is driving me crazy!

Thanks

matej commented 6 years ago

Looks like the best option here is to get rid of the deprecations. People should have had enough time to upgrade by now.

matej commented 6 years ago

Should be fixed since 643b58c.