Posts

Post not yet marked as solved
0 Replies
563 Views
Cannot figure out how to create and open files of different type using multiple DocumentGroups with SwiftUI. Something like this? struct ScheduleApp: App { var body: some Scene { DocumentGroup(newDocument: ScheduleDocument()) { file in ContentView(document: file.$document) } DocumentGroup(newDocument: JobDocument()) { file in JobContentView(document: file.$document) } } }
Posted Last updated
.