Skip to content

Commit

Permalink
Rename init(_ url: URL) to init(url: URL)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strega's Gate authored and Strega's Gate committed Sep 22, 2021
1 parent dca321f commit 7beec45
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/Raylib/Swifty/Image.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ import Foundation

public extension Image {
@_transparent
init(_ url: URL) {
init(url: URL) {
self = Raylib.loadImage(url.path)
}

@available(*, deprecated, renamed: "init(url:)")
init(_ url: URL) {
self.init(url: url)
}
}
#endif

Expand Down

0 comments on commit 7beec45

Please sign in to comment.