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

<Question> Configuring Libres in Kotlin (Compose) Multiplatform for SVG Asset Integration in iOS Compose Project #58

Open
rajagopalannairr opened this issue Jan 10, 2024 · 0 comments

Comments

@rajagopalannairr
Copy link

How can I configure Libres in a Kotlin Multiplatform Compose project to correctly access resource image assets like SVG files? Specifically, I have an SVG located at composeApp/src/commonMain/libres/images/logo.svg. I've set up my Podfile as shown below for an iOS target, but I'm unsure if this implementation correctly integrates the SVG asset for use in the iOS app. Can you review my Podfile configuration and advise if any modifications are needed for proper resource integration?

pre_install do |installer|
  FileUtils.mkdir_p(installer.sandbox.root.to_s + '/../composeApp/build/generated/libres/apple/libres-bundles')
end

target 'iosApp' do
  use_frameworks!
  platform :ios, '16.0'
  pod 'composeApp', :path => '../composeApp'
end

I am not sure some mistake I made and the files are not generating for iOS. Please help me to fix this iussue.

Thanks in advance.

@rajagopalannairr rajagopalannairr changed the title <Question> Configuring Libres in Kotlin Multiplatform for SVG Asset Integration in iOS Compose Project <Question> Configuring Libres in Kotlin (Compose) Multiplatform for SVG Asset Integration in iOS Compose Project Jan 10, 2024
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