Skip to content

Commit

Permalink
Merge pull request #330 from rob-keepsafe/feature/completionSetter
Browse files Browse the repository at this point in the history
Expose completionBlock
  • Loading branch information
buba447 committed Aug 2, 2017
2 parents 05a6f82 + c8666d1 commit 58443dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion lottie-ios/Classes/Private/LOTAnimationView_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ typedef enum : NSUInteger {
@interface LOTAnimationView () <CAAnimationDelegate>

@property (nonatomic, readonly) LOTComposition * _Nonnull sceneModel;
@property (nonatomic, copy, nullable) LOTAnimationCompletionBlock completionBlock;
@property (nonatomic, copy, nullable) NSString *cacheKey;

@end
3 changes: 3 additions & 0 deletions lottie-ios/Classes/PublicHeaders/LOTAnimationView.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ typedef void (^LOTAnimationCompletionBlock)(BOOL animationFinished);
/// Enables or disables caching of the backing animation model. Defaults to YES
@property (nonatomic, assign) BOOL cacheEnable;

/// Sets a completion block to call when the animation has completed
@property (nonatomic, copy, nullable) LOTAnimationCompletionBlock completionBlock;

/*
* Plays the animation from its current position to a specific progress.
* The animation will start from its current position.
Expand Down

0 comments on commit 58443dc

Please sign in to comment.