Skeletonview: Gradient direction changed after leaving app

Created on 30 Apr 2019  Ā·  6Comments  Ā·  Source: Juanpe/SkeletonView

āš ļø Please fill out this template when filing an issue.

šŸ™šŸ¼ Please check if it already exists other issue related with yours.

What did you do?

I made this view with top to bottom gradient. This is what I used to create gradient:

let gradient = SkeletonGradient.init(baseColor: color_262626, secondaryColor: color_4B4B4B)
let animation = SkeletonAnimationBuilder().makeSlidingAnimation(withDirection: .topBottom)
skeletonView.isSkeletonable = true
skeletonView.showAnimatedGradientSkeleton(usingGradient: gradient, animation: animation)

What did you expect to happen?

When I leave the app or go to app switcher and go back to my app I expect the gradient to be the same because I did not update it in any way.

What happened instead?

Instead of staying the same gradient direction, it changed from top to bottom, to left to right.

Steps to reproduce the behavior

Video attached.

SkeletonView Environment

SkeletonView 1.5
Xcode 10.1 (10B61)
Swift 3

skeleton gradient issue

āœ… fixed šŸž bug

Most helpful comment

I have the issue that when I use it in a tab view switch out and switch back, the animation stops. Anyway to prevent this?

All 6 comments

Thanks @kimsonwong for report this bug. It will fixed soon :)

I have the issue that when I use it in a tab view switch out and switch back, the animation stops. Anyway to prevent this?

To add to @FeedMyTummy, for me not only does the animation stop, the skeleton view looks pretty strange (not a solid color).

@Juanpe do you know if this and the issue reported by OP are the same? It sounds like you already have an idea of what might have gone wrong? I believe this is also related to (much older) #88.

IMG_26EC07CB83C7-1

FWIW, after upgraded to 1.8, I always see the above, even on the first load..

Thanks @danqing, I’m working on this bug, I hope release a patch soon šŸ¤™šŸ¼

Hi!

This bug has been fixed in version 1.8.1

Thanks for reporting this bug and for use SkeletonView.

Was this page helpful?
0 / 5 - 0 ratings