79172494

Date: 2024-11-09 09:58:14
Score: 0.5
Natty:
Report link

I had to call aspectRatio before .frame() so the image doesn't stretch

Image(imageName)
    .resizable()
    .aspectRatio(contentMode: .fill)
    .frame(width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height/2)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aleksey Khokhrin