CAAnimation(FWQuartzCore)

@interface CAAnimation (FWQuartzCore)

/// 设置动画开始回调,需要在add之前添加,因为add时会自动拷贝一份对象
@property (nonatomic, copy, nullable) void (^fw_startBlock)(CAAnimation *animation) NS_REFINED_FOR_SWIFT;

/// 设置动画停止回调
@property (nonatomic, copy, nullable) void (^fw_stopBlock)(CAAnimation *animation, BOOL finished) NS_REFINED_FOR_SWIFT;

@end

Undocumented

  • 设置动画开始回调,需要在add之前添加,因为add时会自动拷贝一份对象

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^)(CAAnimation *_Nonnull) fw_startBlock;
  • 设置动画停止回调

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (CAAnimation *_Nonnull, BOOL) fw_stopBlock;