Swift source code implementing drag and drop and more, to accompany the main article.
drag and drop
Implementing a basic drag-and-drop app for macOS using SwiftUI: the DropDelegate protocol, and working with NSItemProvider. With full source and notarized example.
How to change the password for an encrypted sparse bundle, and how to use an ISO keyboard in a macOS VM on Apple silicon.
Want a script app that takes dropped files/folders, does something to them, and saves them? Here’s a simple prototype project which does exactly that. Free to use.
Once it has started, all attempts to drag and drop in apps will fail with the same error message.
