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

support live_file_input #21

Open
bcardarella opened this issue Sep 6, 2024 · 1 comment
Open

support live_file_input #21

bcardarella opened this issue Sep 6, 2024 · 1 comment
Assignees

Comments

@bcardarella
Copy link
Contributor

Now that @carson-katri is testing out Core for 0.4 we need a version of live_file_input for eac client. These should really go in the client's Component module but just tracking here.

See original: https://github.com/phoenixframework/phoenix_live_view/blob/v0.20.17/lib/phoenix_component.ex#L2903-L2922

@carson-katri do you have a good idea on what the SwiftUI view should be in place of the html input type=file ?

@carson-katri
Copy link
Contributor

fileImporter is the modifier used for selecting files:
https://developer.apple.com/documentation/swiftui/view/fileimporter(ispresented:allowedcontenttypes:oncompletion:)

We can make the generated component add that modifier automatically.

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

No branches or pull requests

2 participants