Post not yet marked as solved
Post marked as unsolved with 1 replies, 553 views
Hello folks,I'm very new to SwiftUI and I have trouble resizing images in a List.So far, I created an List like this:var body: some View { List(rooms) { room in Image(room.thumbnailName) <- this image is original size 1920x1080. VStack(alignment: .leading) { Text(room.name) Text("\(room.capacity) people") .font(.subheadline) .foregroundColor(.secondary) } } }Because the original image size is 1920x1080, the List looks very weird. My question: Does anyone of you know how I can resize the image by a property of the imageview so that the List looks accurate?Many thanks in advance.Kind regardsCX8060