Accessibility

public enum Accessibility

Accessibility Traits

  • Constants that describe how an accessibility element behaves. Set these traits to tell an assistive app how an accessibility element behaves or how to treat it. See UIAccessibilityTraits for further information.

    See more

    Declaration

    Swift

    public enum Trait
    extension Accessibility.Trait: Hashable, Equatable

Custom Actions

  • Used to provide additional functionality to assistive technologies beyond your accessible UI.

    See more

    Declaration

    Swift

    public struct CustomAction : Equatable, Hashable

Custom Content

  • Declaration

    Swift

    public struct CustomContent : Equatable
  • Declaration

    Swift

    public static func frameSort(
        direction: Environment.LayoutDirection,
        root: UIView,
        userInterfaceIdiom: UIUserInterfaceIdiom = UIDevice.current.userInterfaceIdiom
    ) -> (NSObject, NSObject) -> Bool
  • Enables an element to opt-in to Large content viewer accessibility support. For a given element, add conformance to this protocol and provide the largeContentViewerConfiguration to automatically provide the large content viewer behavior without having to manually supply the arguments every time an instance of the element is defined.

    Large content viewer allows users to see a larger version of content when they press and hold on small UI elements. This is particularly useful for users who are low vision. It must only be used if dynamic type is not an option for a given element; it must not be used as a substitute for dynamic type. It’s triggered by a long press gesture and shows an enlarged version of the content in a special overlay. It’s only available when accessibility system type sizes.

    If your element can function as a large content viewer element, add conformance to this protocol to add large content viewer behavior via accessibilityShowsLargeContentViewer().

    See more

    Declaration

    Swift

    public protocol LargeContentViewerElement : Element
  • Large content viewer allows users to see a larger version of content when they press and hold on small UI elements. This is particularly useful for users who have difficulty seeing small text or icons.

    See more

    Declaration

    Swift

    public protocol LargeContentViewerItem : UIView
  • Declaration

    Swift

    public struct LargeContentViewerConfiguration
  • Declaration

    Swift

    public struct LargeContentViewer : Element

Large content viewer container