// .frame(maxWidth: .infinity, maxHeight: .infinity)
.aspectRatio(1, contentMode: .fit)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.aspectRatio(1, contentMode: .fit)
...
.frame(maxWidth: .infinity) // give as much as space it needs
Repeats the image on the given space.
Stretches the image.