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

Separate instantiation from showing the view. Otherwise it can happen… #14

Merged
merged 1 commit into from Jan 19, 2016

Conversation

hons82
Copy link
Contributor

@hons82 hons82 commented Jan 19, 2016

… that you end up in a situation where the UI is blocked.

In the original version where instantiation and showing is done in one step (dispatch main) it can be that the dispatch didn't occur when you call the hide method. Hide is checking as a first step if there is an instance, which is not, because the main thread didn't elaborate it yet, and exits.
Then at a point in time the main thread is showing the Indicator with blocking id, and never gets dismissed.

With this change the instance is there, even if it hasn't been shown and as both showing and hiding happen in the same thread (main) it will be shown and immediately hidden, and the UI is unblocked.

… that you end up in a situation where the UI is blocked
Esqarrouth added a commit that referenced this pull request Jan 19, 2016
Separate instantiation from showing the view. Otherwise it can happen…
@Esqarrouth Esqarrouth merged commit e4574b5 into Esqarrouth:master Jan 19, 2016
@Esqarrouth
Copy link
Owner

Good catch, thanks man 👍

@hons82
Copy link
Contributor Author

hons82 commented Jan 20, 2016

Actually it was a problem that I had :-)

Could u please update it on cocoapods too?

thanks
~hons

On Wed, Jan 20, 2016 at 12:19 AM, Goktug Yilmaz notifications@github.com
wrote:

Good catch, thanks man [image: 👍]


Reply to this email directly or view it on GitHub
#14 (comment)
.

@Esqarrouth
Copy link
Owner

I will update the pods tomorrow, hope you're not in a hurry

@Esqarrouth
Copy link
Owner

Sorry for late update. I updated the repo now

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

Successfully merging this pull request may close these issues.

None yet

2 participants