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

# subscript(_:_:)

## Declaration

```swift
@preconcurrency subscript<T, U>(t: KeyPath<AttributeDynamicLookup, T>, u: KeyPath<AttributeDynamicLookup, U>) -> AttributedString.Runs.AttributesSlice2<T, U> where T : AttributedStringKey, U : AttributedStringKey, T.Value : Sendable, U.Value : Sendable { get }
```
