Contrast - iOS

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    
}