AccessibilityBlocker

public struct AccessibilityBlocker : Element

Blocks all accessibility on the element, so that it is is no longer an accessibility element, and its children are hidden from the accessibility system.

  • The element whose accessibility information will be blocked.

    Declaration

    Swift

    public var wrapped: Element
  • If the AccessibilityBlocker is currently blocking accessibility.

    Declaration

    Swift

    public var isBlocking: Bool
  • Creates a new AccessibilityBlocker wrapping the provided element.

    Declaration

    Swift

    public init(
        isBlocking: Bool = true,
        wrapping element: Element
    )

Element