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

the SpinerLayer isn't showing when call the method 'startLoadingAnimation()' #34

Open
dongdong3344 opened this issue Jun 16, 2017 · 6 comments

Comments

@dongdong3344
Copy link

dongdong3344 commented Jun 16, 2017

With Xcode Version 8.3.3 (8E3004b), I create a loginAndRegister Button, when I click the button, I want to call the 'startLoadingAnimation()' Method, but the sipnerLayer with default configuration won't show on the button.
I didn't modify any file which in the TKSubmitTransition folder. Any analysis for it ?Thanks!

@impresyjna
Copy link

As far as I see, this line
layer.add(shrinkAnim, forKey: shrinkAnim.keyPath)
causes all the problems.

@impresyjna
Copy link

Also, there is a problem with spinner when constrains in storyboard are broken

@tuononh
Copy link

tuononh commented Aug 15, 2017

Same problem here on iOS 10, XCode 8, Swift 3.0. Any workaround?

@jesster2k10
Copy link
Collaborator

Hey @wampir1408 can I have some more information and a few screenshots?

@pavankataria
Copy link

Not working here too, iOS 10, xcode 8, Swift 3.0

anirudhamahale added a commit to anirudhamahale/TKSubmitTransition that referenced this issue Sep 10, 2018
Corrected issue 34 takuoka#34
@TomerAvni
Copy link

The problem occurs because the SpinnerLayer is calculated before the TKTransitionSubmitButton has a size (even though it's lazy).
I've. I've moved the spiner.spinnerColor = spinnerColor line to the startLoadingAnimation() function, so the spinner initialisation is delayed until TKTransitionSubmitButton has a concrete size.

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

6 participants