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)
}
}
}