Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dismissAfterAction not working as expected #112

Open
MartinP7r opened this issue Nov 2, 2016 · 1 comment
Open

dismissAfterAction not working as expected #112

MartinP7r opened this issue Nov 2, 2016 · 1 comment

Comments

@MartinP7r
Copy link

I'm using your framework with swift and am trying to make a progress HUD hide automatically after the success action was called.

let hud = M13ProgressHUD(progressView: M13ProgressViewRing())!
hud.progressViewSize = CGSize(width: 60.0, height: 60.0)
hud.animationPoint = CGPoint(x: UIScreen().bounds.width / 2,
                                      y: UIScreen().bounds.height / 2)

if let app = UIApplication.shared.delegate as? AppDelegate, let window = app.window {
            window.addSubview(hud)
}
hud.show(true)

hud.dismissAfterAction = true
hud.perform(M13ProgressViewActionSuccess, animated: true)

however, when the action is called and the checkmark icon is animated, the hud's view does not get dismissed.

@algrid
Copy link
Contributor

algrid commented Nov 5, 2016

Hmm, as I can see in sources the dismissAfterAction property is never used. Looks like a bug. You should probably try to call dismiss explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants