CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.28k stars 403 forks source link

[BUG] FileSaver iOS displays 'Move' instead of 'Save' #2336

Open AntHillOracle opened 2 weeks ago

AntHillOracle commented 2 weeks ago

Is there an existing issue for this?

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Using CommunityToolkit.Maui.Storage.FileSaver.SaveAsync() on iOS, when the file dialog is raised it shows 'Move' in the upper-right corner of the interface instead of 'Save'. This interface error happens even when saving a newly created file for the first time.

The file is successfully saved to the selected location when Move is tapped, however the 'Move' prompt is simply confusing for a user that has created a brand-new file. If the file already exists and Move is tapped, the user is properly prompted to replace or rename the file.

This issue is reproducable using the CommunityToolkit Samples app, or by creating your own app using FileSaver.

Expected Behavior

The iOS FileSaver dialog should show 'Save' when saving a newly created file.

Steps To Reproduce

  1. Open and run the CommunityToolkit.Maui.Sample solution.
  2. Tap the hamburger menu, select essentials, select FileSaver.
  3. Select any of the FileSaver instantiation methods.

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui.git

Environment

- .NET MAUI CommunityToolkit: 4.0.0
- OS: iOS 17.2
- .NET MAUI: net8.0-ios

Anything else?

No response