SwiftfuncUIKitCoreUIView

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{}

param{}

  1. 0_
  2. 1handler:
    function(A, UITraitCollection) -> ()escaping

result{}

existentialUITraitChangeRegistration