Toggle
public struct Toggle : View
extension Toggle: Renderable
A view that can be turned on and off.
-
Declaration
Swift
public var viewStore: ViewValues
-
Creates an instance of a toggle.
Declaration
Swift
public init(isOn: Binding<Bool>, @ViewBuilder label: () -> View)
-
Declaration
Swift
public init(_ title: String, isOn: Binding<Bool>)
-
Declaration
Swift
public var body: View { get }
-
Declaration
Swift
public func createView(context: Context) -> UIView
-
Declaration
Swift
public func updateView(_ view: UIView, context: Context)