📅  最后修改于: 2022-03-11 14:55:53.187000             🧑  作者: Mango
VStack {
GeometryReader { geo in
Image("Example")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: geo.size.width, height: 300)
}
}