Tappable
public struct Tappable : Element
Wraps a content element and calls the provided closure when tapped.
-
Declaration
Swift
public var wrappedElement: Element
-
Declaration
Swift
public var onTap: () -> Void
-
Declaration
Swift
public init(onTap: @escaping () -> Void, wrapping element: Element)
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?