Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dialog): implement save API on iOS #1707

Merged
merged 2 commits into from
Sep 3, 2024
Merged

Conversation

lucasfernog
Copy link
Member

No description provided.

@lucasfernog lucasfernog requested a review from a team as a code owner August 31, 2024 01:56
Copy link
Contributor

github-actions bot commented Aug 31, 2024

Package Changes Through d249614

There are 3 changes which include fs with prerelease, dialog with prerelease, window-state with prerelease

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.0-rc.2 2.0.0-rc.3
fs 2.0.0-rc.1 2.0.0-rc.2
dialog 2.0.0-rc.3 2.0.0-rc.4
http 2.0.0-rc.1 2.0.0-rc.2
persisted-scope 2.0.0-rc.1 2.0.0-rc.2
window-state 2.0.0-rc.2 2.0.0-rc.3

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

let destinationFolder = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first!
let destinationPath = destinationFolder.appendingPathComponent(args.fileName ?? "file")
if !fileManager.fileExists(atPath: destinationPath.path) {
// the file contents must be actually provided by the tauri dev after the path is resolved by this API
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I quite understand this comment or what the logic is trying to do, this comment needs to be improved

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, hope the implementation makes more sense now
this is due to the Apple API design which does not match other operating systems

@lucasfernog lucasfernog merged commit feb1e93 into v2 Sep 3, 2024
13 checks passed
@lucasfernog lucasfernog deleted the feat/ios-dialog-save branch September 3, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants