UIView.Layer Property


The Core Animation layer used for rendering.

[get: Foundation.Export("layer", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual CoreAnimation.CALayer Layer { get; }
member this.Layer : CoreAnimation.CALayer

Property Value


Returns the CALayer that the UIView is being rendered on.



The CALayer object that is returned does not support implicit animations. To support implicit animations, developers must create a type derived from UIView that exports the "layerClass" selector to return the Class for a custom layer that implements the desired animations. The remarks in UIView have more information in the Animation section.

This method will not return null.

The UIView and the CALayer are tightly coupled and should not be reassigned.

This can be used from a background thread.

Applies to