我将代码从Apple Watch项目复制到iOS项目,现在一切都变得很小了。
在按钮后添加.frame()修饰符:
.frame()
Button("name") { // code } .frame(width: 32.0, height: 32.0)