UserInteractionEnabled
public struct UserInteractionEnabled : Element
UserInteractionEnabled conditionally enables user interaction of its wrapped element.
Note
When user interaction is disabled, any elements within the wrapped element will become non-interactive.-
Declaration
Swift
public var isEnabled: Bool -
Declaration
Swift
public var wrappedElement: Element -
Declaration
Swift
public init(_ isEnabled: Bool, wrapping element: Element) -
Declaration
Swift
public var content: ElementContent { get } -
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?
View on GitHub
UserInteractionEnabled Structure Reference