UIView.Layer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.