解决问题并try
struct PlayGroundThirdView: View {
//some variables
//some vm and controller
var body: some View {
//some views
Button {
vcontroller.fetch()
vcontroller.setColor(.red)
} label: {
Text("Refresh")
}
.frame(width: 50, height: 50, alignment: .leading)
.foregroundColor(.white)
.background(.red)
.cornerRadius(20)
}
}
我希望按钮的拐角半径只适用于两个角落只适用于 bootstrap 方向,但从来没有工作与剪辑形状,甚至对齐 bootstrap .