Relative Content

Tag Archive for swiftui

Image with corner radius when alternating fill / fit

I have added an image inside a GeometryReader and I make the image to either scale to fit or scale to fill the GeometryReader depending on a boolean value (changed using a double tap on the image). The code bellow works fine.