Returns a new trait collection consisting of traits merged from a specified array of trait collections.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of
A new trait collection consisting of traits merged from a specified
This method takes an array of one or more trait collections and merges them to create a new trait collection. If the array contains more than one element, the highest-indexed element that contains a given trait is used for that trait. For example, the following code snippet creates a trait collection with a compact horizontal size class, because the second element in the array overrides the first for that trait: