diff --git a/ios/Elements/RNSVGClipPath.m b/ios/Elements/RNSVGClipPath.m index 922f5e6a..eeec8686 100644 --- a/ios/Elements/RNSVGClipPath.m +++ b/ios/Elements/RNSVGClipPath.m @@ -15,7 +15,7 @@ return nil; } -- (void)saveDefination:(CGContextRef)context +- (void)saveDefinition { [[self getSvgView] defineClipPath:self clipPathRef:self.name]; } diff --git a/ios/Elements/RNSVGDefs.m b/ios/Elements/RNSVGDefs.m index 5bd583d0..15602445 100644 --- a/ios/Elements/RNSVGDefs.m +++ b/ios/Elements/RNSVGDefs.m @@ -14,7 +14,7 @@ - (void)renderTo:(CGContextRef)context { for (RNSVGNode *node in self.subviews) { - [node saveDefination: context]; + [node saveDefinition]; } } diff --git a/ios/Elements/RNSVGGroup.m b/ios/Elements/RNSVGGroup.m index ddd07439..c8ae2ed3 100644 --- a/ios/Elements/RNSVGGroup.m +++ b/ios/Elements/RNSVGGroup.m @@ -47,7 +47,7 @@ return nil; } -- (void)saveDefination:(CGContextRef)context +- (void)saveDefinition { if (self.name) { RNSVGSvgView* svg = [self getSvgView]; @@ -55,7 +55,7 @@ } for (RNSVGNode *node in self.subviews) { - [node saveDefination:context]; + [node saveDefinition]; } } diff --git a/ios/Elements/RNSVGLinearGradient.m b/ios/Elements/RNSVGLinearGradient.m index 02d821db..835f5c13 100644 --- a/ios/Elements/RNSVGLinearGradient.m +++ b/ios/Elements/RNSVGLinearGradient.m @@ -26,7 +26,7 @@ return nil; } -- (void)saveDefination:(CGContextRef)context +- (void)saveDefinition { RNSVGBrushConverter *converter = [[RNSVGBrushConverter alloc] init]; converter.colors = self.gradient; diff --git a/ios/Elements/RNSVGRadialGradient.m b/ios/Elements/RNSVGRadialGradient.m index 3363d83b..3ef71e10 100644 --- a/ios/Elements/RNSVGRadialGradient.m +++ b/ios/Elements/RNSVGRadialGradient.m @@ -24,7 +24,7 @@ return nil; } -- (void)saveDefination:(CGContextRef)context +- (void)saveDefinition { RNSVGBrushConverter *converter = [[RNSVGBrushConverter alloc] init]; converter.colors = self.gradient; diff --git a/ios/Elements/RNSVGSvgView.m b/ios/Elements/RNSVGSvgView.m index 6f38606b..3fbd30af 100644 --- a/ios/Elements/RNSVGSvgView.m +++ b/ios/Elements/RNSVGSvgView.m @@ -46,7 +46,7 @@ CGContextRef context = UIGraphicsGetCurrentContext(); for (RNSVGNode *node in self.subviews) { - [node saveDefination:context]; + [node saveDefinition]; [node renderTo:context]; if (node.responsible && !self.responsible) { diff --git a/ios/RNSVG.xcodeproj/project.pbxproj b/ios/RNSVG.xcodeproj/project.pbxproj index e80acbf4..f0b2a5fd 100644 --- a/ios/RNSVG.xcodeproj/project.pbxproj +++ b/ios/RNSVG.xcodeproj/project.pbxproj @@ -12,7 +12,7 @@ 0CF68B0D1AF0549300FF9E5C /* RNSVGPattern.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CF68AF01AF0549300FF9E5C /* RNSVGPattern.m */; }; 0CF68B0F1AF0549300FF9E5C /* RNSVGSolidColorBrush.m in Sources */ = {isa = PBXBuildFile; fileRef = 0CF68AF41AF0549300FF9E5C /* RNSVGSolidColorBrush.m */; }; 1023B48D1D3DDCCE0051496D /* RNSVGDefsManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 1023B48C1D3DDCCE0051496D /* RNSVGDefsManager.m */; }; - 1023B4901D3DF4C40051496D /* RNSVGDefination.m in Sources */ = {isa = PBXBuildFile; fileRef = 1023B48F1D3DF4C40051496D /* RNSVGDefination.m */; }; + 1023B4901D3DF4C40051496D /* RNSVGDefs.m in Sources */ = {isa = PBXBuildFile; fileRef = 1023B48F1D3DF4C40051496D /* RNSVGDefs.m */; }; 1023B4931D3DF5060051496D /* RNSVGUse.m in Sources */ = {isa = PBXBuildFile; fileRef = 1023B4921D3DF5060051496D /* RNSVGUse.m */; }; 1023B4961D3DF57D0051496D /* RNSVGUseManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 1023B4951D3DF57D0051496D /* RNSVGUseManager.m */; }; 103371321D41C5C90028AF13 /* RNSVGBezierPath.m in Sources */ = {isa = PBXBuildFile; fileRef = 103371311D41C5C90028AF13 /* RNSVGBezierPath.m */; }; @@ -76,7 +76,7 @@ 1023B48B1D3DDCCE0051496D /* RNSVGDefsManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSVGDefsManager.h; sourceTree = ""; }; 1023B48C1D3DDCCE0051496D /* RNSVGDefsManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSVGDefsManager.m; sourceTree = ""; }; 1023B48E1D3DF4C40051496D /* RNSVGDefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNSVGDefs.h; path = Elements/RNSVGDefs.h; sourceTree = ""; }; - 1023B48F1D3DF4C40051496D /* RNSVGDefination.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNSVGDefination.m; path = Elements/RNSVGDefination.m; sourceTree = ""; }; + 1023B48F1D3DF4C40051496D /* RNSVGDefs.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNSVGDefs.m; path = Elements/RNSVGDefs.m; sourceTree = ""; }; 1023B4911D3DF5060051496D /* RNSVGUse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNSVGUse.h; path = Elements/RNSVGUse.h; sourceTree = ""; }; 1023B4921D3DF5060051496D /* RNSVGUse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNSVGUse.m; path = Elements/RNSVGUse.m; sourceTree = ""; }; 1023B4941D3DF57D0051496D /* RNSVGUseManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSVGUseManager.h; sourceTree = ""; }; @@ -292,7 +292,7 @@ 1023B4911D3DF5060051496D /* RNSVGUse.h */, 1023B4921D3DF5060051496D /* RNSVGUse.m */, 1023B48E1D3DF4C40051496D /* RNSVGDefs.h */, - 1023B48F1D3DF4C40051496D /* RNSVGDefination.m */, + 1023B48F1D3DF4C40051496D /* RNSVGDefs.m */, 10ED4A991CF065260078BC02 /* RNSVGClipPath.h */, 10ED4A9A1CF065260078BC02 /* RNSVGClipPath.m */, 1039D2811CE71EB7001E90A8 /* RNSVGGroup.h */, @@ -406,7 +406,7 @@ 10BEC1C31D3F680F00FDCB19 /* RNSVGRadialGradientManager.m in Sources */, 10BA0D371CE74E3100887C2B /* RNSVGImageManager.m in Sources */, 10BA0D391CE74E3100887C2B /* RNSVGNodeManager.m in Sources */, - 1023B4901D3DF4C40051496D /* RNSVGDefination.m in Sources */, + 1023B4901D3DF4C40051496D /* RNSVGDefs.m in Sources */, 10BA0D381CE74E3100887C2B /* RNSVGLineManager.m in Sources */, 10BA0D481CE74E3D00887C2B /* RNSVGCircle.m in Sources */, 10BA0D351CE74E3100887C2B /* RNSVGEllipseManager.m in Sources */, diff --git a/ios/RNSVGNode.h b/ios/RNSVGNode.h index b620bdae..4cb94104 100644 --- a/ios/RNSVGNode.h +++ b/ios/RNSVGNode.h @@ -59,7 +59,7 @@ /** * save element`s defination into svg element. */ -- (void)saveDefination:(CGContextRef)context; +- (void)saveDefinition; /** * remove element`s defination from svg element. diff --git a/ios/RNSVGNode.m b/ios/RNSVGNode.m index 396bdbc5..904ad75c 100644 --- a/ios/RNSVGNode.m +++ b/ios/RNSVGNode.m @@ -199,7 +199,7 @@ [self willRemoveFromSuperView]; } -- (void)saveDefination:(CGContextRef)context +- (void)saveDefinition { if (self.name) { RNSVGSvgView* svg = [self getSvgView];