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.
Search our recipes
Related Posts
- 100 Styling and Customizing Tooltips in SwiftUI with TipKit
- 100 Radial Menu in SwiftUI
- 100 GIF Images in SwiftUI
- 100 SwiftUI Image Tint
- 100 SwiftUI Marquee
Check out the companion apps!
Our free companion app and XCode Extension brings 100+ SwiftUI recipes right at your fingertips! Get a preview of it in the Online Companion.
Have a recipe for us?
Get in touch and let's grow the cookbook together!