File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ extension SwiftDraw.CommandLine {
9494 static func printHelp( ) {
9595 print ( " " )
9696 print ( """
97- swiftdraw, version 0.9.1
97+ swiftdraw, version 0.9.2
9898copyright (c) 2021 Simon Whitty
9999
100100usage: swiftdraw <file.svg> [--format png | pdf | jpeg | swift] [--size wxh] [--scale 1x | 2x | 3x]
Original file line number Diff line number Diff line change 11{
22 "name" : " SwiftDraw" ,
3- "version" : " 0.9.1 " ,
3+ "version" : " 0.9.2 " ,
44 "summary" : " A Swift library that adds support for SVG files to UIImage and NSImage." ,
55 "homepage" : " https://github.com/swhitty/SwiftDraw" ,
66 "authors" : " Simon Whitty" ,
1010 },
1111 "source" : {
1212 "git" : " https://github.com/swhitty/SwiftDraw.git" ,
13- "tag" : " 0.9.1 "
13+ "tag" : " 0.9.2 "
1414 },
1515 "platforms" : {
1616 "ios" : " 10.0" ,
Original file line number Diff line number Diff line change @@ -46,9 +46,14 @@ public extension NSImage {
4646 }
4747
4848 @objc
49- static func svgNamed( _ name: String , in bundle: Bundle = Bundle . main ) -> NSImage ? {
49+ static func svgNamed( _ name: String , in bundle: Bundle ) -> NSImage ? {
5050 NSImage ( svgNamed: name, in: bundle)
5151 }
52+
53+ @objc
54+ static func svgNamed( _ name: String ) -> NSImage ? {
55+ NSImage ( svgNamed: name, in: . main)
56+ }
5257}
5358
5459public extension Image {
Original file line number Diff line number Diff line change @@ -44,9 +44,14 @@ public extension UIImage {
4444 }
4545
4646 @objc
47- static func svgNamed( _ name: String , in bundle: Bundle = Bundle . main ) -> UIImage ? {
47+ static func svgNamed( _ name: String , in bundle: Bundle ) -> UIImage ? {
4848 UIImage ( svgNamed: name, in: bundle)
4949 }
50+
51+ @objc
52+ static func svgNamed( _ name: String ) -> UIImage ? {
53+ UIImage ( svgNamed: name, in: . main)
54+ }
5055}
5156
5257public extension Image {
You can’t perform that action at this time.
0 commit comments