Edit

Share via


UIView.Layer Property

Definition

The Core Animation layer used for rendering.

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

Property Value

Returns the CALayer that the UIView is being rendered on.

Attributes

Remarks

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