AccessibilityFocus

public struct AccessibilityFocus : Element

Enables VoiceOver focus to jump to the wrapped element via a trigger that can be manually fired.

  • The element that will have the focus.

    Declaration

    Swift

    public var wrapped: Element
  • A object that can be held on to by the caller to manually trigger a focus.

    Declaration

    Swift

    public var trigger: Trigger
  • Creates a new AccessibilityFocus wrapping the provided element.

    Declaration

    Swift

    public init(
        wrapping wrapped: Element,
        trigger: Trigger
    )

Element

Trigger

  • A trigger that can be used to manually fire an accessibility focus.

    See more

    Declaration

    Swift

    public final class Trigger