registerForTraitChanges
UIView.registerForTraitChanges<A where A: UITraitEnvironment>(_: [UIKit.UITraitDefinition.Type], handler: (A, UITraitCollection) -> ()) -> UITraitChangeRegistration
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
generic{}
A
req{}
- conformance:genericParameter
AprotocolUITraitEnvironment
param{}
- 0_structSwift.Array
- argmetatype
UIKit.UITraitDefinition.Type- baseexistential
UITraitDefinition
- 1handler:function
(A, UITraitCollection) -> ()escaping- paramgenericParameter
A - returnstuple
()
result{}
existential
UITraitChangeRegistration