A set of methods that makes the iOS interface environment available to your app.
- iOS 8.0+
- tvOS 9.0+
The iOS interface environment includes traits such as horizontal and vertical size class, display scale, and user interface idiom. To access the trait environment of an object that adopts this protocol, use the
trait property. The protocol also provides an overridable method that the system calls when the interface environment changes. Implement this method as part of creating an adaptive iOS app.