Skip to content

AXNameFromColor(_:)

Category: Function

Platforms: iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+, visionOS 1.0+, watchOS 7.0+

Overview

Returns a localized description of the color to use in accessibility attributes.

Declaration

func AXNameFromColor(_ color: CGColor) -> String

Details

Parameters

  • Parameters

See Also

  • Features
  • API ReferenceCustomized accessibility content
  • API ReferenceAudio graphs
  • API ReferenceHearing device support

AXName From Color(_:)

Return Value

The name associated with the color.

Topics (Grouped)

Features

  • Customized accessibility content — API Reference; Customize your apps to deliver accessibility information to your users in measured portions as they need it.
  • Audio graphs — API Reference; Define an accessible representation of your chart for VoiceOver to generate an audio graph.
  • Hearing device support — API Reference; Access information about paired hearing aid devices and streaming status.

Code Examples

func AXNameFromColor(_ color: CGColor) -> String

Source: https://developer.apple.com/documentation/accessibility/axnamefromcolor(_:)