Skip to content

Commit

Permalink
fix: add all platforms to version check
Browse files Browse the repository at this point in the history
Resolves: none.
  • Loading branch information
loay-ashraf committed May 25, 2024
1 parent d9e74ea commit 757974f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public struct HTTPUploadRequestFile {
let fileName = url.lastPathComponent
let (name, `extension`) = fileName.splitNameAndExtension()
self.name = name
if #available(macOS 13, *) {
if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
self.path = url.path()
} else {
self.path = url.path
Expand Down

0 comments on commit 757974f

Please sign in to comment.