Post marked as solved
Post marked as solved with 1 replies, 173 views
Hi,
I'm developing an app using SwiftUI for both iOS and Mac OS and use onOpenURL to handle external links. However, this doesn't seem to work after switching to a single window app on Mac OS.
This code works:
WindowGroup {
Text("Hi").onOpenURL { url in
print("Open URL", url)
}
}
But this doesn't:
Window("My App", id: "my_app") {
Text("Hi").onOpenURL { url in
print("Open URL", url)
}
}
Anyone knows a workaround? Thanks!