---
title: "subscript(_:)"
framework: swift
role: symbol
role_heading: Instance Subscript
path: "swift/dictionary/subscript(_:)-1uuzk"
---

# subscript(_:)

Subscript that shadows the standard Dictionary subscript to provide path-based access. When the key contains ":", it is treated as a path with ":" as the delimiter; otherwise the regular dictionary key semantics apply.

## Declaration

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