09
Mar
2022
SwiftUI Image from Assets
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:
All you have to do to render it on the screen is to pass its name to Image:
Image("logo_small")
Using Image(decorative:)
does the same thing.