yea I put it as high in the hierarchy as I can.
for me that's generally on the content() view - makes it easy to know where it is, particularly if u want to call it from multiple different places
var body: some View {
content()
.fileImporter {}
.fileExporter {}
}
func content() -> some View {
//all the other views
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: