减少图像的边框宽度,它的SF符号,我尝试了不同的方法,但它不工作
struct CheckboxView: View {
var isSelected: Bool
var size: CGSize = CGSize(width: 30, height: 30)
var body: some View {
Image(systemName: isSelected ? "rectangle.inset.filled" : "rectangle")
.resizable()
.frame(width: size.width, height: size.height)
}
}
struct CheckboxView_Previews: PreviewProvider {
static var previews: some View {
CheckboxView(isSelected: false)
}
}
当前
此
1条答案
按热度按时间k2fxgqgv1#
是
甚至
够薄吗