---
title: "subscript(_:)"
framework: xpc
role: symbol
role_heading: Instance Subscript
path: "xpc/xpcdictionary/subscript(_:)-n49r"
---

# subscript(_:)

Get or set a value in this dictionary as data.

## Declaration

```swift
subscript(key: String) -> RawSpan? { get set }
```

## Parameters

- `key`: The key under which to get or set the data.

## Return Value

Return Value A RawSpan of the data or nil if no such value was found.
