FioriToggleStyle

public struct FioriToggleStyle : ToggleStyle

Experimental Fiori switch/toggle style

  • Undocumented

    Declaration

    Swift

    public init(
        labelColor: Color = Color.preferredColor(.primaryLabel),
        onColor: Color = Color.preferredColor(.tintColor),
        offColor: Color = Color.preferredColor(.secondaryFill),
        onThumbColor: Color = Color.preferredColor(.baseWhite),
        offThumbColor: Color = Color.preferredColor(.baseWhite),
        onBorderColor: Color = Color.preferredColor(.separator),
        offBorderColor: Color = Color.preferredColor(.separator)
    )
  • Declaration

    Swift

    public func makeBody(configuration: `Self`.Configuration) -> some View