From the course: iOS 14 Development Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Loading Images in SwiftUI

Loading Images in SwiftUI

From the course: iOS 14 Development Essential Training

Start my 1-month free trial

Loading Images in SwiftUI

- [Instructor] Now let's take a look at bringing images into our project. Let's go inside of the HStack at the very top. So I'll create a new line in there and I'm going to create an Image object. Note that you can also create images using the library. So if you click this plus button up here and you filter in views for Image, you can actually click and drag that into the code to create an image. But for what we're doing this is actually not going to work because if I use Image Name as my image name , it's going to look for an image named Image Name in my project, which is actually not what we want. So let's delete that and then type Image and open parenthesis, and then look at all the different images that you can open up. So you can pass in a name and you can read the descriptions inside of the code hinting, but we're not going to go over all of them now, but just know that this is how you load images that are…

Contents