Fix urls handling from pasteboard

This commit is contained in:
Arkadiusz Fal 2022-11-11 16:33:28 +01:00
parent 8978bf3f33
commit 6ca6a40aa1

View File

@ -50,8 +50,8 @@ struct OpenVideosModel {
var urlsFromClipboard: [URL] { var urlsFromClipboard: [URL] {
#if os(iOS) #if os(iOS)
if let pasteboard = UIPasteboard.general.string { if let pasteboard = UIPasteboard.general.urls {
return urlsFrom(pasteboard) return pasteboard
} }
#elseif os(macOS) #elseif os(macOS)
if let pasteboard = NSPasteboard.general.string(forType: .string) { if let pasteboard = NSPasteboard.general.string(forType: .string) {