SwiftUI - ColorPicker - Wheel Size

Viewed 1134

I'm using ColorPicker. I have a problem with the size of the Wheel. I want it bigger. I'm using Xcode 12.1. Hope that someone can help me. Thank you.

These is my code:

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)
    }
}

enter image description here

1 Answers

You can scale the color wheel with a scaleEffect.

enter image description here

Related