Hello,
I am looking for a solution to center my pictures in the ZStack. This on both the x and y axes. I want the image to fit into the stack, adjust to the width and just be displayed completely in the middle. What does not fit should be "cut off". ".aspectRatio (contentMode: .fill)" does not help me. ".stretch" adapts it to the width, but squeezes it into the display. Thank you for your help.
Greetings.