Skip to content

Commit 863707a

Browse files
committed
Rename method
1 parent e5eadea commit 863707a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

SwiftDraw/NSImage+Image.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public extension NSImage {
4646
}
4747

4848
@objc
49-
static func svgNamed(_ name: String, in bundle: Bundle) -> NSImage? {
50-
NSImage(svgNamed: name, in: bundle)
49+
static func svgNamed(_ name: String, inBundle: Bundle) -> NSImage? {
50+
NSImage(svgNamed: name, in: inBundle)
5151
}
5252

5353
@objc

SwiftDraw/UIImage+Image.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ public extension UIImage {
4040
return nil
4141
}
4242

43+
UIImage(n)
44+
4345
self.init(cgImage: cgImage, scale: image.scale, orientation: image.imageOrientation)
4446
}
4547

4648
@objc
47-
static func svgNamed(_ name: String, in bundle: Bundle) -> UIImage? {
48-
UIImage(svgNamed: name, in: bundle)
49+
static func svgNamed(_ name: String, inBundle: Bundle) -> UIImage? {
50+
UIImage(svgNamed: name, in: inBundle)
4951
}
5052

5153
@objc

0 commit comments

Comments
 (0)