I understand that it is impossible to use the .scaledToFit()
modifier on an image with a frame of 120 and 430, with a frame modifier like .frame(height: 100, width: 100)
and expect the image to somehow keep the aspect ratio and fit the frame of width 100 and heigh 100.
So, it seems like the only way around this would be to force the user to crop their image into a square when uploading it with the image picker. Is this possible in SwiftUI/is there something I'm missing here?
Thanks