From e89de65a2b3eb8abbc32f3d606d229fa9d08dea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catala=CC=81n?= Date: Mon, 12 Feb 2018 19:11:07 +0100 Subject: [PATCH] fix: Problem setting skeletonIsAnimated property --- Sources/SkeletonView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SkeletonView.swift b/Sources/SkeletonView.swift index 424c1d7..8f17454 100644 --- a/Sources/SkeletonView.swift +++ b/Sources/SkeletonView.swift @@ -32,7 +32,6 @@ public extension UIView { } func startSkeletonAnimation(_ anim: SkeletonLayerAnimation? = nil) { - skeletonIsAnimated = true recursiveSearch(inArray: subviewsSkeletonables, leafBlock: startSkeletonLayerAnimationBlock(anim)) { $0.startSkeletonAnimation(anim) @@ -51,6 +50,7 @@ public extension UIView { extension UIView { func showSkeleton(withType type: SkeletonType = .solid, usingColors colors: [UIColor], animated: Bool = false, animation: SkeletonLayerAnimation? = nil) { + skeletonIsAnimated = animated flowDelegate = SkeletonFlowHandler() flowDelegate?.willBeginShowingSkeletons(withRootView: self) recursiveShowSkeleton(withType: type, usingColors: colors, animated: animated, animation: animation)