CapableFeature

public enum CapableFeature : String

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.

    Declaration

    Swift

    case assistiveTouch
  • Enhances text contrast.

    Declaration

    Swift

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

    Declaration

    Swift

    case guidedAccess
  • Delete the last command by shaking the phone.

    Declaration

    Swift

    case shakeToUndo
  • Reads out the content of the current screen.

    Declaration

    Swift

    case speakScreen
  • Reads out the selected content.

    Declaration

    Swift

    case speakSelection
  • Display subtitles when playing videos.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case monoAudio
  • 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 bigger.

    Declaration

    Swift

    case largerText
  • Increases legibility by making fonts heavier.

    Declaration

    Swift

    case boldText
  • 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
  • Returns an array containing all CapableFaeture types available on the current platform.

    Declaration

    Swift

    public static func allValues() -> [CapableFeature]

    Return Value

    An array containing all CapableFaeture types available on the current platform.

  • 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