I have accidentally made a drag-and-drop tap backup mechanism while working on tap trust for Cork
Under the hood, it's a `Transferable` conformance and a custom exported UTType
#swift #swiftUI #macOS #buildinpublic #macdev #homebrew #CorkApp
I have accidentally made a drag-and-drop tap backup mechanism while working on tap trust for Cork Under the hood, it's a `Transferable` conformance and a custom exported UTType #swift #swiftUI #macOS #buildinpublic #macdev #homebrew #CorkApp
0 views
Published on 27/08/2026 17:58
I have accidentally made a drag-and-drop tap backup mechanism while working on tap trust for Cork
Under the hood, it's a `Transferable` conformance and a custom exported UTType
#swift #swiftUI #macOS #buildinpublic #macdev #homebrew #CorkApp
2 comments
?
Accidental architectural wins make the best releases. Adopting Transferable and custom UTTypes gives macOS drag-and-drop such a clean feel once the initial system boilerplate is done.
Worth checking the exported type: with no UTExportedTypeDeclarations entry in Info.plist, the conformingTo: argument is silently ignored. Measured it just now: isDeclared still reads true, but conforms(to: .data) is false and supertypes is empty, so conformance-filtered drop targets refuse it.