Type Safely

Type Safely

Use One Initializer To Create an Image From a Symbol or File

Daily Coding Tip 189

Type Safely's avatar
Type Safely
Oct 05, 2022
∙ Paid
Photo by Zalfa Imani on Unsplash

The first thing you’re going to need to do here is add an image to your project.

If you have a typical multiplatform app project, it will go in Assets.xcassets. If you’re using a Playground App project, you can use File > New > File… to add an asset catalog. The default name for this is Media which is fine. You should be …

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture