-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
addTapHandler after SwiftSpinner.show(delay: …) #97
Comments
The demo project has lots of examples of this. Take a look at the code in |
Yeah, I tried doing something like this :
But even after calling this method the spinner shows.. this is my biggest problem actually :/ |
Could you tidy that reply up, I think you'd double pasted some parts? |
I'm calling this For what's showed up there, I'm not duplicating any code cause I'm assigning different strings to the Spinner. |
So your |
Yes it does, but the
block is showing even after calling the (sorry I can't make it properly indented.. :/) |
That's the same block of code I was referring too. In the code you've provided, that block will always be show. There is no check in between to see if it does actually need to be shown. |
Okay.. I'll try to find a way then.. thanks for you help buddy :) |
To break it down a little more clearly. This is shown first:
Then this:
Then this:
That sequence will always run to the conclusion of the 'server is taking too long' stage. If you don't want that part showing, because your networking was a success, you need a check in place to prevent that. I would suggest breaking this up into separate parts and then only calling the bits you need at appropriate times in the blocks that handle your networking. |
Thank you for your explanation, I may do as you suggest to answer my problem the best way :) |
It would be great if you can change the following function
func show(delay: Double, title: String, animated: Bool = true)
to return aSwiftSpinner
as other show functions to allow us adding atapHandler
after a specific delay…I'm trying to find a workaround but couldn't make one working for now…
Is there a reason you didn't returned a
SwiftSpinner
with that specific function ?If anyone has a solution, go ahead and tell me 👍
The text was updated successfully, but these errors were encountered: