---
title: "attributeChanged(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/attributedstring/attributeinvalidationcondition/attributechanged(_:)-1vgwv"
---

# attributeChanged(_:)

## Declaration

```swift
static func attributeChanged<T>(_ key: KeyPath<AttributeDynamicLookup, T>) -> AttributedString.AttributeInvalidationCondition where T : AttributedStringKey
```
