Answers for "change aspect ratio of image swift 5"

-1

swiftui image aspect ratio

VStack {
    GeometryReader { geo in
        Image("Example")
            .resizable()
            .aspectRatio(contentMode: .fit)
            .frame(width: geo.size.width, height: 300)
    }
}
Posted by: Guest on March-21-2021

Code answers related to "change aspect ratio of image swift 5"

Code answers related to "Swift"

Browse Popular Code Answers by Language