This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix retain cycle between shimmering layer and the shimmer animation.
CAAnimation retains its delegate, so only set the delegate on the one animation it's needed on. Avoiding setting it on the indefinite slide animation avoids the retain cycle. Since the fade animations are not infinitely repeated, they will be cleaned up after completion.
- Loading branch information
Showing
1 changed file
with
7 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters