我正在尝试设置图像的高度和宽度。我试过使用以下代码,但没有用。
Image("testImg") .frame(width: 50, height: 50)
swift swiftui
swift ×1
swiftui ×1