TKSubmitTransition icon indicating copy to clipboard operation
TKSubmitTransition copied to clipboard

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

Open dongdong3344 opened this issue 7 years ago • 6 comments

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!

dongdong3344 avatar Jun 16 '17 07:06 dongdong3344

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

impresyjna avatar Aug 09 '17 10:08 impresyjna

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

impresyjna avatar Aug 14 '17 12:08 impresyjna

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

tuononh avatar Aug 15 '17 03:08 tuononh

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

jesster2k10 avatar Aug 23 '17 12:08 jesster2k10

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

pavankataria avatar Sep 08 '17 14:09 pavankataria

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.

TomerAvni avatar Dec 31 '18 07:12 TomerAvni