Posts

Post marked as solved
2 Replies
1.3k Views
In the "Building Lists and Navigation" tutorial, Section 2, we are supposed to add the line landmark.image(forSize: 50)to the body of LandmarkRow. Unfortunately, this method is not defined in the Landmark structure of the file to be downloaded. It is defined in the Landmark.swift file in the documentation, but when I tried to include that definition in the downloaded file, I was told that the "size" parameter is extra in the call:ImageStore.shared.image(name: imageName, size: size)Looking at the ImageStore class, it seems that the image method is indeed defined to take a single parameter: the name. I know this is more in the line of reporting something rather than asking a question, but it would seem that removing the tutorial altogether would be preferable to removing a function from a structure definition and leaving the learner wanting. So, to the point... is there a way to scale this image? What is the preferred way to "constrain" an image to a particular point size in SwiftUI? Thanks in advance for any help, Rick Campbell
Posted
by NK5RK.
Last updated
.