SwitchView

public struct SwitchView
extension SwitchView: View
extension SwitchView: _ViewEmptyChecking

SwitchViewprovides a Fiori style title andToggle.

Usage

@State var isOn: Bool = true

SwitchView(title: "Switch", isOn: self.$isOn)
  • Undocumented

    Declaration

    Swift

    public init(@ViewBuilder title: () -> any View,
                isOn: Binding<Bool>)
  • Undocumented

    Declaration

    Swift

    init(title: AttributedString,
         isOn: Binding<Bool>)
  • Undocumented

    Declaration

    Swift

    init(_ configuration: SwitchViewConfiguration)
  • Declaration

    Swift

    public var body: some View { get }
  • Undocumented

    Declaration

    Swift

    public var isEmpty: Bool { get }