CapableFeature

public enum CapableFeature : String, CaseIterable

An enum specifying all features available on the current platform.

  • Menu that helps people with motor skill impairments to do certain actions or gestures by using a single tap.

  • Enhances text contrast.

  • Restricts access to certain features of a single app to keep the user focused.

  • Pairing status of a hearing aid.

  • Deletes the last command by shaking the phone.

  • Reads out the content of the current screen.

  • Reads out the selected content.

  • Helps color blind users to differentiate settings differently, e.g. by using shapes rather than colors.

    Declaration

    Swift

    case differentiateWithoutColor
  • Enables users to navigate through items of the screen without having to use a mouse.

    Declaration

    Swift

    case fullKeyboardAccess
  • Increases contrast to make out text and interface elements.

    Declaration

    Swift

    case increaseContrast
  • Displays subtitles when playing videos.

  • Makes the display more readable for color blind people by using gray tones instead of colors.

  • Merges stereo audio channels to help users that are hard of hearing or deaf in one ear.

  • Increases legibility by making fonts bigger.

  • Helps people with low vision, color blindness, or sensitivity to brightness to read the display content.

    Declaration

    Swift

    case invertColors
  • Removes transparency from layers to make them readable for users with visual impairment.

    Declaration

    Swift

    case reduceTransparency
  • Allows users with limited mobility to control their device with the help of ability switches and other adaptive devices.

    Declaration

    Swift

    case switchControl
  • Increases legibility by making fonts heavier.

  • Reduces animations to help users with motion sickness and epilepsy issues.

    Declaration

    Swift

    case reduceMotion
  • The screen reader available on Apple platforms.

    Declaration

    Swift

    case voiceOver
  • Iterates through a given list of feature types and returns an array containing the feature names as strings.

    Declaration

    Swift

    public static func keys(forFeatures features: [CapableFeature]) -> [String]

    Parameters

    features

    An array containing the feature types of interest.

    Return Value

    An array containing the feature names as strings