ASViewController Class Reference

Conforms to *
:
ASDisplayNode
DisplayNodeType
__covariant
Declared in ASViewController.h

  overrideDisplayTraitsWithTraitCollection

Set this block to customize the ASDisplayTraits returned when the VC transitions to the given traitCollection.

@property (nonatomic, copy) ASDisplayTraitsForTraitCollectionBlock overrideDisplayTraitsWithTraitCollection

Declared In

ASViewController.h

  overrideDisplayTraitsWithWindowSize

Set this block to customize the ASDisplayTraits returned when the VC transitions to the given window size.

@property (nonatomic, copy) ASDisplayTraitsForTraitWindowSizeBlock overrideDisplayTraitsWithWindowSize

Declared In

ASViewController.h

  interfaceState

Passthrough property to the the .interfaceState of the node.

@property (nonatomic, readonly) ASInterfaceState interfaceState

Return Value

The current ASInterfaceState of the node, indicating whether it is visible and other situational properties.

See Also

Declared In

ASViewController.h

– nodeConstrainedSize

The constrained size used to measure the backing node.

- (ASSizeRange)nodeConstrainedSize

Discussion

Defaults to providing a size range that uses the view controller view’s bounds as both the min and max definitions. Override this method to provide a custom size range to the backing node.

Declared In

ASViewController.h