diff --git a/Sources/ColorPicker/ColorPicker.swift b/Sources/ColorPicker/ColorPicker.swift index e708ff0..67341cf 100644 --- a/Sources/ColorPicker/ColorPicker.swift +++ b/Sources/ColorPicker/ColorPicker.swift @@ -22,6 +22,11 @@ public struct ColorPicker : View { } .aspectRatio(1, contentMode: .fit) } + + public init(color: Binding, strokeWidth: CGFloat) { + self.color = color + self.strokeWidth = strokeWidth + } } public struct ColorWheel: View {