The problem: When i use AsyncImage to display an image. The size of image is big and dont fit the size of frame.
Thats the code i used:
AsyncImage(url: URL(string: mockImageUrl))
.frame(width: 200, height: 300)
And this is how image is displayed:
What I need: I need to do image fits the frame.
What I tryed: I defined the size of AsyncImage but the image still doesnt feat the height and width of frame.