---
title: "init(_:)"
framework: xpc
role: symbol
role_heading: Initializer
path: "xpc/xpcarray/init(_:)"
---

# init(_:)

Creates a new array that contains the given XPC object.

## Declaration

```swift
init(_ value: xpc_object_t)
```

## Parameters

- `value`: An XPC object. The object’s type must be doc://com.apple.xpc/documentation/XPC/XPC_TYPE_ARRAY-swift.var.

## See Also

### Creating an array

- [init()](xpc/xpcarray/init().md)
- [copy(into:)](xpc/xpcarray/copy(into:).md)
