Skip to content

Commit 2fd40cb

Browse files
committed
Added 2.0 announcement
1 parent c8d22ff commit 2fd40cb

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11

22
![SwiftSVG Logo](/images/SwiftSVG-Logo.png)
33

4+
```
5+
⚡⚡⚡ ANNOUNCEMENT ⚡⚡⚡
6+
A new version of SwiftSVG is coming soon! 2.0 will bring wider support for more elements
7+
types and attributes, a brand new architecture for greater extensibility, and a faster,
8+
more stable parser.
9+
10+
If you want to try it out, check out the feature/2.0.0 branch or install through Cocoapods:
11+
12+
pod 'SwiftSVG', :git => '[email protected]:mchoe/SwiftSVG.git', :branch => 'feature/2.0.0'
13+
14+
Stay tuned for more information and thanks for your support!
15+
```
16+
417
SwiftSVG
518
========
619

@@ -48,7 +61,7 @@ Usage
4861

4962
SwiftSVG provides multiple interfaces to parse single path strings and SVG files using NSXMLParser.
5063

51-
####String+SVG####
64+
### String+SVG
5265

5366
The simplest way is to parse raw path data using `parseSVGPath()`
5467

@@ -70,12 +83,12 @@ Or, you can use the String extension `pathFromSVGString()`:
7083
let parsedPath: UIBezierPath = examplePathData.pathFromSVGString()
7184
```
7285

73-
#####Output:#####
86+
#### Output:
7487
![This is not a triangle](/images/triangle.png)
7588

7689
***
7790

78-
####UIBezierPath+SVG####
91+
### UIBezierPath+SVG
7992

8093
SwiftSVG also provides a convenience initializer for UIBezierPath that allows you to either create a `UIBezierPath` from a path string or from an SVG file:
8194

@@ -93,12 +106,12 @@ let pathFromSVGFile = UIBezierPath.pathWithSVGURL(svgURL)
93106
shapelayer.path = pathFromSVGFile
94107
```
95108

96-
#####Output:#####
109+
#### Output:
97110
![Put it here!](/images/fistBump.png)
98111

99112
***
100113

101-
####CAShapeLayer+SVG####
114+
### CAShapeLayer+SVG
102115

103116
You can create a `CAShapeLayer` from a path string or SVG file:
104117

@@ -112,7 +125,7 @@ let svgURL = NSBundle.mainBundle().URLForResource("pizza", withExtension: "svg")
112125
let svgShapeLayerFromFile = CAShapeLayer(SVGURL: svgURL)
113126
```
114127

115-
#####Output:#####
128+
#### Output:
116129
![This is not delicious pizza](/images/pizza.png)
117130

118131
Fill colors are read automatically if provided as an attribute on the path element. The fill attribute must be supplied as a hex value:
@@ -122,7 +135,7 @@ Fill colors are read automatically if provided as an attribute on the path eleme
122135

123136
***
124137

125-
####UIView+SVG####
138+
### UIView+SVG
126139

127140
A UIView convenince initializer is provided as well. Same thing goes as with CAShapeLayer, you can supply a path string or an SVG file:
128141

@@ -136,12 +149,12 @@ let svgURL = NSBundle.mainBundle().URLForResource("sockPuppet", withExtension: "
136149
let svgViewFromFile = UIView(SVGURL: svgURL)
137150
```
138151

139-
#####Output:#####
152+
#### Output:
140153
![This is not a sock puppet](/images/sockPuppet.png)
141154

142155
***
143156

144-
####SVGView####
157+
### SVGView
145158

146159
Finally, SwiftSVG provides a `UIView` subclass that is `IBInspectable` and `IBDesignable`. Simply add a view to your storyboard and use the SVGView subclass as you class name. Then put the name of your SVG file in your bundle in the `IBInspectable` property "SVGName"
147160

0 commit comments

Comments
 (0)