{"action":"created","issue":{"url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/555","repository_url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD","labels_url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/555/labels{/name}","comments_url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/555/comments","events_url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/555/events","html_url":"https://github.com/SVProgressHUD/SVProgressHUD/issues/555","id":132005427,"number":555,"title":"HUD doesn't `dismiss` if called immediately after the `show` (bug)","user":{"login":"Vinzius","id":337930,"avatar_url":"https://avatars.githubusercontent.com/u/337930?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinzius","html_url":"https://github.com/Vinzius","followers_url":"https://api.github.com/users/Vinzius/followers","following_url":"https://api.github.com/users/Vinzius/following{/other_user}","gists_url":"https://api.github.com/users/Vinzius/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinzius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinzius/subscriptions","organizations_url":"https://api.github.com/users/Vinzius/orgs","repos_url":"https://api.github.com/users/Vinzius/repos","events_url":"https://api.github.com/users/Vinzius/events{/privacy}","received_events_url":"https://api.github.com/users/Vinzius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-07T20:10:52Z","updated_at":"2016-03-12T17:05:50Z","closed_at":null,"body":"Hey !\r\n\r\nFirst, thanks for your lib ;)\r\n\r\nProblem happens:\r\n- With the 2.0 beta8.\r\n- Can reproduce every time\r\n\r\nProblem: if you try to dismiss the HUD just after displaying it, then it won't work.\r\n\r\nExample:\r\n```[SVProgressHUD show];\r\n[SVProgressHUD dismiss];```\r\n\r\nReason: the library check if the HUD is displayed when we try to hide it. But in this case, the HUD isn't displayed yet (because the action is in a queue). So we eventually are stuck :-(\r\n\r\nMaybe we could move the logic \"if([self isVisible]) { }\" inside the block execution and not before ?\r\n\r\nCheers,\r\n\r\nVincent"},"comment":{"url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/comments/195775502","html_url":"https://github.com/SVProgressHUD/SVProgressHUD/issues/555#issuecomment-195775502","issue_url":"https://api.github.com/repos/SVProgressHUD/SVProgressHUD/issues/555","id":195775502,"user":{"login":"Vinzius","id":337930,"avatar_url":"https://avatars.githubusercontent.com/u/337930?v=3","gravatar_id":"","url":"https://api.github.com/users/Vinzius","html_url":"https://github.com/Vinzius","followers_url":"https://api.github.com/users/Vinzius/followers","following_url":"https://api.github.com/users/Vinzius/following{/other_user}","gists_url":"https://api.github.com/users/Vinzius/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinzius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinzius/subscriptions","organizations_url":"https://api.github.com/users/Vinzius/orgs","repos_url":"https://api.github.com/users/Vinzius/repos","events_url":"https://api.github.com/users/Vinzius/events{/privacy}","received_events_url":"https://api.github.com/users/Vinzius/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T17:05:50Z","updated_at":"2016-03-12T17:05:50Z","body":"Hi! I just submitted a PR. I think it'll solve most of the issues + the easiest way to solve the bug while not adding too much code.\r\n\r\n@honkmaster sad for the defect :-( I hope you'll trust me for the PR and add it to the next beta-release :-)\r\n\r\nCheers"}}