Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (41 sloc) 1.431 kb
// UIBezierPath+SVG.h
// svg_test
// Created by Arthur Evstifeev on 5/29/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
typedef enum CType {
} CommandType;
//Commands protocol
@protocol SVGCommand <NSObject>
- (void)processCommand:(NSString*)commandString withPrevCommand:(NSString*)prevCommand forPath:(UIBezierPath*)path;
//Commands abstract class
@interface SVGCommandImpl : NSObject <SVGCommand> {
NSString* _prevCommand;
- (void)performCommand:(CGFloat*)params withType:(CommandType)type forPath:(UIBezierPath*)path;
//Commands concrete implementation
@interface SVGMoveCommand : SVGCommandImpl @end
@interface SVGLineToCommand : SVGCommandImpl @end
@interface SVGHorizontalLineToCommand : SVGCommandImpl @end
@interface SVGVerticalLineToCommand : SVGCommandImpl @end
@interface SVGCurveToCommand : SVGCommandImpl @end
@interface SVGSmoothCurveToCommand : SVGCommandImpl @end
@interface SVGQuadraticCurveToCommand : SVGCommandImpl @end
@interface SVGSmootQuadratichCurveToCommand : SVGCommandImpl @end
@interface SVGClosePathCommand : SVGCommandImpl @end
//Commands factory
@interface SVGCommandFactory : NSObject {
NSDictionary* commands;
+ (SVGCommandFactory*)defaultFactory;
- (id<SVGCommand>)getCommand:(NSString*)commandLetter;
@interface UIBezierPath (SVG)
+ (UIBezierPath *)bezierPathWithSVGString:(NSString*)svgString;
Jump to Line
Something went wrong with that request. Please try again.