SwiftUI/PlatformDocument_Mac.swift:13: Fatal error: Expected subclass override

I'm trying to use the Environment newDocument function in the latest SwiftUI and getting this error when I attempt to create the document. Has anyone else seen this?

Replies

I have and in the same boat can’t seem to find a solution around it, also I don’t understand why it’s macOS only, this api should work on iOS and macOS because they didn’t state in WWDC that this api is macOS only

Same problem here.