-
Notifications
You must be signed in to change notification settings - Fork 748
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
Knowing when an hide operation is completed #413
Comments
Have you looked at |
Sorry, I should have looked harder!! However, I think |
Thinking about this... |
Hi @wtmoose,
I took advantage of the fact that closure behaves as a reference type. However, as stated here, I don't know if it's a good idea to have a closure ( |
Hi @wtmoose,
In my app, I'm using SwiftMessages to show an activity-indicator view during a time consuming operation.
All it's ok. I found the
indefinite(delay: TimeInterval, minimum: TimeInterval)
enum case very useful.Now, when my time consuming operation is over (a network request for example), I have to push a new view controller. If I set the
delay
property to 1s and theminimum
property to 1s, and my operation finishes in 1.5 seconds, I will still see the activity-indicator view for about 0.5 seconds after the push. In my opinion, to solve this, it would be useful to know when an hide operation is effectively completed to do the push only then. Something like:open func hide(id: String, completion: (() -> Void)? = nil)
What do you think of this?
The text was updated successfully, but these errors were encountered: