relatedcode / ProgressHUD

ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations. ‼️
https://relatedcode.com
MIT License
2.83k stars 464 forks source link

`Unexpectedly found nil` when showing banner #150

Closed kashif-izhar closed 1 year ago

kashif-izhar commented 1 year ago

ProgressHUD/ProgressHUD+Banner.swift:117: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value

I am getting above crash when trying to show a banner with below code:

ProgressHUD.showBanner("Ghosting On", "Last image will now show to position your next shot", delay: 8.0)

Error leads to the following line in ProgressHUD+Banner.swift file

extension ProgressHUD {
    private func resizeBanner() {
        **let widthBanner = main.frame.width - 32**
relatedcode commented 1 year ago

@kashif-izhar Fixed. Thanks for the feedback. Please check the version 13.8.6

kashif-izhar commented 1 year ago

@relatedcode Thank you very much! for the quick resolution