Skip to content

Commit

Permalink
set status off before the transition is finished (Juanpe#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanpe authored Jul 23, 2021
1 parent 1f70ee4 commit 49fafcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SkeletonView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ extension UIView {
let skeletonLayer = skeletonLayer,
let transitionStyle = currentSkeletonConfig?.transition else { return }
skeletonLayer.stopAnimation()
status = .off
skeletonLayer.removeLayer(transition: transitionStyle) {
self.skeletonLayer = nil
self.status = .off
self.currentSkeletonConfig = nil
}
}
Expand Down

0 comments on commit 49fafcc

Please sign in to comment.