我正在使用ColorPicker。车轮尺寸有问题。 我想要更大。 我正在使用Xcode 12.1。希望有人能帮助我。谢谢。
这些是我的代码:
struct SwiftUIView: View {
@State private var bgColor = Color.blue
var body: some View {
ColorPicker("Set the background color", selection: $bgColor)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(bgColor)
}
}