Skip to content

Commit e5eadea

Browse files
committed
0.9.2
1 parent 1fe178b commit e5eadea

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CommandLine/CommandLine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
9898
copyright (c) 2021 Simon Whitty
9999
100100
usage: swiftdraw <file.svg> [--format png | pdf | jpeg | swift] [--size wxh] [--scale 1x | 2x | 3x]

SwiftDraw.podspec.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -10,7 +10,7 @@
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",

SwiftDraw/NSImage+Image.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5459
public extension Image {

SwiftDraw/UIImage+Image.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

5257
public extension Image {

0 commit comments

Comments
 (0)