-
Declaration
Swift
public var body: some View { get }
-
Creates an instance with a custom view as label.
Declaration
Swift
public init(action: @escaping () -> Void, @ViewBuilder label: () -> Label)
-
Creates an instance with a string as label.
Declaration
Swift
init<S>(_ title: S, action: @escaping () -> Void) where S : StringProtocol