Skip to content

Instantly share code, notes, and snippets.

@acwright
Created August 27, 2020 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acwright/708f19cdcaac32891bca0065062bbce6 to your computer and use it in GitHub Desktop.
Save acwright/708f19cdcaac32891bca0065062bbce6 to your computer and use it in GitHub Desktop.
fileExporter
.fileExporter(
isPresented: $isExporting,
document: document,
contentType: .plainText,
defaultFilename: "Message"
) { result in
if case .success = result {
// Handle success.
} else {
// Handle failure.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment