TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

SOLVED: Creating an URL for an Image of an Assets Catalog

Forums > SwiftUI

Hello! I would like to add images to my local notifications. This requires an URL. It is working fine if I store the images in the Bundle itself, but it would be better to store them in an Assets Folder. But I don't find a way how to creat the correct URL. Thanks for your help in advance! Regards, Martin

3      

Well, according to several sources you can't do that. There are workarounds though. See details here. https://stackoverflow.com/a/55607309

3      

Thanks a lot!

3      

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.