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

Load image as plain resource by string on iOS #704

Open
OskarPersson opened this issue May 13, 2024 · 0 comments
Open

Load image as plain resource by string on iOS #704

OskarPersson opened this issue May 13, 2024 · 0 comments

Comments

@OskarPersson
Copy link

OskarPersson commented May 13, 2024

If I have a file called foo.png placed at commonMain/resources/MR/files/foo.png, is it possible to access this in SwiftUI similar to this?

Image("MR.files.foo.png")

For some files (even images) I want to avoid placing them in commonMain/resources/MR/images.

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

1 participant