UIView+TUIUtil.h 547 B

123456789101112131415161718192021222324
  1. //
  2. // UIView+TUIUtil.h
  3. // TUICore
  4. //
  5. // Created by gg on 2021/10/9.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef enum : NSUInteger {
  11. TUIOscillatoryAnimationToBigger,
  12. TUIOscillatoryAnimationToSmaller,
  13. } TUIOscillatoryAnimationType;
  14. @interface UIView (TUIUtil)
  15. - (void)roundedRect:(UIRectCorner)corner withCornerRatio:(CGFloat)cornerRatio;
  16. + (void)showOscillatoryAnimationWithLayer:(CALayer *)layer type:(TUIOscillatoryAnimationType)type;
  17. @end
  18. NS_ASSUME_NONNULL_END