---
title: layer
framework: browserenginekit
role: symbol
role_heading: Instance Property
path: browserenginekit/layerhierarchy/layer
---

# layer

The layer represented by this layer hierarchy.

## Declaration

```swift
var layer: CALayer? { get set }
```

## Discussion

Discussion Set this property to the root layer of the hierarchy that you host in a LayerHierarchyHostingView in the browser app.
