CALayer(QMUIViewAnimation)

@interface CALayer (QMUIViewAnimation)

/**
 开启了该属性的 CALayer 可在 +[UIView animateWithDuration:animations:]  执行动画,系统默认是不支持这种做法的。
 
 @code
 [UIView animateWithDuration:1 animations:^{
     layer.frame = xxx;
 } completion:nil];
 @endcode
 */
@property(nonatomic, assign) BOOL qmui_viewAnimaitonEnabled;

@end

Undocumented

  • 开启了该属性的 CALayer 可在 +[UIView animateWithDuration:animations:] 执行动画,系统默认是不支持这种做法的。

    [UIView animateWithDuration:1 animations:^{
        layer.frame = xxx;
    } completion:nil];
    

    Declaration

    Objective-C

    @property (nonatomic) BOOL qmui_viewAnimaitonEnabled;

    Swift

    var qmui_viewAnimaitonEnabled: Bool { get set }