Contents

containerView

The Uiview in which this layer is contained. This view is used to derive traits and other properties for applying the correct hover effect to the layer. It may also be used to assist with applying some kinds of hover effects to the layer.

Declaration

weak var containerView: UIView? { get set }

Discussion

The containerView should be an ancestor of this layer (once it has been added to a layer hierarchy) to behave correctly, but does not need to be the immediate parent of this layer. If the containerView is set to nil or is deallocated, some aspects of this layer’s hover effect may no longer work correctly.