From dfbcfc89997a1f07ff9cae54e8b3bc2faf4d9e6e Mon Sep 17 00:00:00 2001 From: Kyle Bashour Date: Wed, 3 May 2017 10:55:08 -0700 Subject: [PATCH] Add nullability annotations to LOTAnimationView --- .../Classes/PublicHeaders/LOTAnimationView.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lottie-ios/Classes/PublicHeaders/LOTAnimationView.h b/lottie-ios/Classes/PublicHeaders/LOTAnimationView.h index b542d427fd..f60bceeaeb 100644 --- a/lottie-ios/Classes/PublicHeaders/LOTAnimationView.h +++ b/lottie-ios/Classes/PublicHeaders/LOTAnimationView.h @@ -13,11 +13,11 @@ typedef void (^LOTAnimationCompletionBlock)(BOOL animationFinished); @interface LOTAnimationView : LOTView -+ (instancetype)animationNamed:(NSString *)animationName NS_SWIFT_NAME(init(name:)); -+ (instancetype)animationNamed:(NSString *)animationName inBundle:(NSBundle *)bundle NS_SWIFT_NAME(init(name:bundle:)); -+ (instancetype)animationFromJSON:(NSDictionary *)animationJSON NS_SWIFT_NAME(init(json:)); ++ (nullable instancetype)animationNamed:(nonnull NSString *)animationName NS_SWIFT_NAME(init(name:)); ++ (nullable instancetype)animationNamed:(nonnull NSString *)animationName inBundle:(nonnull NSBundle *)bundle NS_SWIFT_NAME(init(name:bundle:)); ++ (nullable instancetype)animationFromJSON:(nonnull NSDictionary *)animationJSON NS_SWIFT_NAME(init(json:)); -- (instancetype)initWithContentsOfURL:(NSURL *)url; +- (nullable instancetype)initWithContentsOfURL:(nonnull NSURL *)url; @property (nonatomic, readonly) BOOL isAnimationPlaying; @property (nonatomic, assign) BOOL loopAnimation; @@ -25,12 +25,12 @@ typedef void (^LOTAnimationCompletionBlock)(BOOL animationFinished); @property (nonatomic, assign) CGFloat animationSpeed; @property (nonatomic, readonly) CGFloat animationDuration; -- (void)playWithCompletion:(LOTAnimationCompletionBlock)completion; +- (void)playWithCompletion:(nullable LOTAnimationCompletionBlock)completion; - (void)play; - (void)pause; -- (void)addSubview:(LOTView *)view - toLayerNamed:(NSString *)layer; +- (void)addSubview:(nonnull LOTView *)view + toLayerNamed:(nonnull NSString *)layer; #if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR @property (nonatomic) LOTViewContentMode contentMode;