Button
public struct Button : Element
An element that wraps a child element in a button that mimics a UIButton with the .system style. That is, when highlighted (or disabled), it fades its contents to partial alpha.
-
Declaration
Swift
public var wrappedElement: Element
-
Declaration
Swift
public var isEnabled: Bool
-
Declaration
Swift
public var onTap: () -> Void
-
Declaration
Swift
public var minimumTappableSize: CGSize
-
Declaration
Swift
public init(isEnabled: Bool = true, onTap: @escaping () -> Void = {}, wrapping element: Element)
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?