ColorPickerButton
@MainActor
public struct ColorPickerButton : View
A re-created button view which looks like Apple’s color picker button. The problem with Apple’s color picker is that it’s directly linked to the color picker view, so there is no way to navigate first to a different screen before showing Apple’s color picker. To by-pass this shortcoming we can use this custom button.
-
Undocumented
Declaration
Swift
@MainActor public init(color: Color, action: @escaping () -> Void)
-
Declaration
Swift
@MainActor public var body: some View { get }