r/SwiftUI • u/Square-Meat-9258 • 19h ago
FileReferenceDocument macOS app. Disallow more than one document open at a time?
2
Upvotes
Is it possible to ensure that only one document can be open at a time? My target is macOS 15. The idea would be that the user is alerted and no existing document can be opened (e.g. drag and drop, file->new, Finder etc).
