Files
real-e-party-iOS/YuMi/CustomUI/UIViewGradientLayer/UIView+GradientLayer.h
2025-10-17 14:52:29 +08:00

29 lines
642 B
Objective-C

// Created by P on 2024/11/18.
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIView (GradientLayer)
- (void)addGradientBackgroundWithColors:(NSArray<UIColor *> *)colors
startPoint:(CGPoint)startPoint
endPoint:(CGPoint)endPoint
cornerRadius:(CGFloat)cornerRadius;
- (void)removeGradientBackground;
- (void)updateGradientBackgroundWithColors:(NSArray<UIColor *> *)colors
startPoint:(CGPoint)startPoint
endPoint:(CGPoint)endPoint;
@end
NS_ASSUME_NONNULL_END