Skip to main content
Logo Appt Light

Contrast on iOS

Apps should provide enough contrast between text and its background so that it can be read by people with moderately low vision. Furthermore, user interface components should also have enough contrast. Low contrast controls are more difficult to perceive, and may be completely missed by people with a visual impairment.

On iOS, can use Xcode's Accessibility Inspector to detect contrast issues automatically.

You can also use the property accessibilityContrast to check if the user has enabled increased contrast in the Accessibility settings of their device.

if UITraitCollection.current.accessibilityContrast == .high {
    // High contrast logic    
}

Feedback?

Let us know!