你能告诉我这里的系统映像有什么问题吗?为什么无论如何都不能扩大规模?
我在这幅图上有两张照片。这两张图片都是椅子图像,也就是"chair.lounge.fill“。我试着增加帧,但仍然不起作用。谢谢您抽时间见我。
@ObservedObject var cinema = Cinema()
var body: some View {
VStack() {
HStack() {
Image(systemName: "chair.lounge.fill")
.aspectRatio(contentMode: .fit)
.frame(width: 100, height: 100)
Text("Special Seats")
}
.foregroundColor(.brown)
HStack() {
Image(systemName: "chair.lounge.fill")
.aspectRatio(contentMode: .fit)
.frame(width: 100, height: 100)
Text("Available Seats")
}
.foregroundColor(.blue)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(.black)
}发布于 2022-07-19 01:32:27
您的代码和系统映像都很好,只需在.resizable()之后添加Image()就可以解决这个问题。
https://stackoverflow.com/questions/73030177
复制相似问题