- Also added IJSVGUnit so that graidents know if to work out from the current bounds or not when creating the angle points - Added IJSVGImage which is a wrapper around loading base64 encoded images - Added IJSVGPattern which is based on IJSVGGroup and will draw a pattern inside a nodes clipped path
24 lines
469 B
Objective-C
24 lines
469 B
Objective-C
//
|
|
// IJSVGPattern.m
|
|
// IJSVGExample
|
|
//
|
|
// Created by Curtis Hard on 27/05/2016.
|
|
// Copyright © 2016 Curtis Hard. All rights reserved.
|
|
//
|
|
|
|
#import "IJSVGPattern.h"
|
|
|
|
@implementation IJSVGPattern
|
|
|
|
- (void)drawInContextRef:(CGContextRef)context
|
|
path:(IJSVGPath *)path
|
|
{
|
|
// currently only support images
|
|
for(IJSVGImage * image in self.children) {
|
|
[image drawInContextRef:context
|
|
path:path];
|
|
}
|
|
}
|
|
|
|
@end
|