Reading time: 1 min

This quick recipe shows how to display an image from Assets catalog in SwiftUI.

Say that you've added your image to the Assets catalog:

Screenshot%202022-03-08%20at%2020.50.32

All you have to do to render it on the screen is to pass its name to Image:

Image("logo_small")

Screenshot%202022-03-09%20at%2009.53.10

Using Image(decorative:) does the same thing.

Next Post Previous Post