filesbox/app/filesbox_ios/FilesBox/Pods/SVGKit/Source/Utils/SVGKPattern.m
2023-09-21 10:53:23 +08:00

26 lines
449 B
Objective-C

#import "SVGKPattern.h"
@implementation SVGKPattern
@synthesize color;
+ (SVGKPattern *)patternWithColor:(UIColor *)color
{
SVGKPattern* p = [[SVGKPattern alloc] init];
p.color = color;
return p;
}
+ (SVGKPattern*)patternWithImage:(UIImage*)image
{
UIColor* patternImage = [UIColor colorWithPatternImage:image];
return [self patternWithColor:patternImage];
}
- (CGColorRef)CGColor
{
return [self.color CGColor];
}
@end