How are you calling this code?
If you have it via command, which calls the Save Panel, that should be a simple fix, but if you are using fileExporter, then you just need to specify the content type, which is easiest to do in the view model.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: