jdg / MBProgressHUD

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

Custom view sometimes shows grey bordered. #555

Closed Nautiyalsachin closed 4 years ago

Nautiyalsachin commented 5 years ago

Hey there, I just tried adding a custom view animation but I am getting a grey bordered at the bottom of the progress indicator. Can you please help me to remove it.

Thanks.

tomaszmaciejko commented 5 years ago

@Nautiyalsachin Can you provide steps to reproduce or example project so this issue could be tracked down?

Nautiyalsachin commented 5 years ago

Here is the code I am using : -

extension UIViewController {

func showLottieHUD(_ text : String? = "Loading...") {
    DispatchQueue.main.async {
        let hud = MBProgressHUD.showAdded(to: self.view, animated: true)
        hud.isUserInteractionEnabled = false
        hud.contentColor =  UIColor(hex: "5891FF")
        if let text = text {
            hud.label.text = text
        }
    }
}

And sometimes it shows -

img_5bf3a07cd71c-1

Nautiyalsachin commented 5 years ago

I tried hud.button.isHidden = true, not sure if its a persistent solution or not.

matej commented 4 years ago

This looks like it's another report for https://github.com/jdg/MBProgressHUD/issues/587. The problem should be fixed now.