Implementing drag and drop of URLs from Safari to my MacOS app. Using a #SwiftUI...

@patrickmcconnell@mastodon.social

Implementing drag and drop of URLs from Safari to my MacOS app. Using a #SwiftUI dropDestination.

I can receive Strings and URLs (web locations dragged from the desktop) but if you drag a url from the address bar of Safari (grabbing the favicon) it is type that I can’t figure out.

I’ve tried using the raw data with URL(dataRepresentation: data, relativeTo: nil) but it’s not a URL exactly.

Anyone know this object type? Input appreciated?

#macOSDev #Swift