Type Safely

Type Safely

Share this post

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

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

Share this post

Type Safely
Type Safely
Use One Initializer To Create an Image From a Symbol or File
Share
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 …

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share