UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

FileExporter show "Move" label

Forums > SwiftUI

@Pigna  

Hi!

I'm using the fileExporter modifier but in the "File" modal I have the action "Move" and not the action "Save" Is there a way to edit this action label?

1      

I don't think there is a way to do this (aside from creating your own file exporter), since the documentation says that it displays a system interface.

So, the interface layout that is displayed is probably saved in iOS somewhere and you wouldn't be able to modify it. Much like the way that a UIImagePickerController will display the photo library or camera in the way that Apple decided was the best way to show that type of thing in an iOS environment.

1      

@Pigna  

Mhm ok, so why does it show "Move"? I mean it seams wrong to me, since I'm exporting a file, it can be confusing for users are using the app...

1      

I think Apple just wants to train people to think this way because of the way that their apps all work in their own private sandbox with their files inaccessible by other apps.

So, when our app saves something, it is saving the data in its own environment that can only be accessed by that app. But when we export something, it is moving it from our app to another place that could be accessible by another app.

1      

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.