Returns a Boolean value indicating whether changing between the specified and current trait collections would affect color values.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
A trait collection that you want to compare to the current trait collection.
true if the colors in the two trait collections differ, or
false if they have the same component values.
Use this method to determine whether changing the traits of the current environment would also change the colors in your interface. For example, changing the
accessibilityContrast property usually changes the colors of your interface.
Comparing Trait Collections