---
title: "subscript(_:_:_:_:_:)"
framework: foundation
role: symbol
role_heading: Instance Subscript
path: "foundation/attributedstring/runs-swift.struct/subscript(_:_:_:_:_:)-9i87e"
---

# subscript(_:_:_:_:_:)

## Declaration

```swift
@preconcurrency subscript<T, U, V, W, X>(t: KeyPath<AttributeDynamicLookup, T>, u: KeyPath<AttributeDynamicLookup, U>, v: KeyPath<AttributeDynamicLookup, V>, w: KeyPath<AttributeDynamicLookup, W>, x: KeyPath<AttributeDynamicLookup, X>) -> AttributedString.Runs.AttributesSlice5<T, U, V, W, X> where T : AttributedStringKey, U : AttributedStringKey, V : AttributedStringKey, W : AttributedStringKey, X : AttributedStringKey, T.Value : Sendable, U.Value : Sendable, V.Value : Sendable, W.Value : Sendable, X.Value : Sendable { get }
```
