Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SwiftUI - ColorPicker - Wheel Size

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

like image 272
Carson Vo Avatar asked Mar 01 '23 23:03

Carson Vo


1 Answers

You can scale the color wheel with a scaleEffect.

enter image description here

like image 178
Jake Runzer Avatar answered Mar 17 '23 02:03

Jake Runzer