diff --git a/README.md b/README.md index 8d00a97..07579bc 100644 --- a/README.md +++ b/README.md @@ -126,11 +126,12 @@ With SwiftUI projects the color picker can't be used inside the action sheet tha ```swift struct ContentView: View { @State var selectedColor: UIColor = UIColor.white - + let config = SheetyColorsConfig(alphaEnabled: true, hapticFeedbackEnabled: true, initialColor: UIColor.red, type: .rgb) + var body: some View { Text("Select a color") .foregroundColor(Color(self.$selectedColor.wrappedValue)) - SheetyColorsView(color: $selectedColor) + ColorPicker(config: config, color: self.$selectedColor) } } ```