---
title: "init(xpcRepresentation:)"
framework: browserenginekit
role: symbol
role_heading: Initializer
path: "browserenginekit/layerhierarchyhandle/init(xpcrepresentation:)"
---

# init(xpcRepresentation:)

Creates a handle from a representation received in an XPC message.

## Declaration

```swift
init(xpcRepresentation: xpc_object_t?) throws
```

## Parameters

- `xpcRepresentation`: A representation of the handle, encoded as an XPC object.

## See Also

### Sharing a layer hierarchy handle using XPC

- [createXPCRepresentation()](browserenginekit/layerhierarchyhandle/createxpcrepresentation().md)
