---
title: AttributedStringAttributeMutation
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/attributedstringattributemutation
---

# AttributedStringAttributeMutation

A protocol that defines in-place mutations for attributes in an attributed string.

## Declaration

```swift
protocol AttributedStringAttributeMutation
```

## Topics

### Mutating the String’s Attributes

- [setAttributes(_:)](foundation/attributedstringattributemutation/setattributes(_:).md)
- [mergeAttributes(_:mergePolicy:)](foundation/attributedstringattributemutation/mergeattributes(_:mergepolicy:).md)
- [replaceAttributes(_:with:)](foundation/attributedstringattributemutation/replaceattributes(_:with:).md)

## Relationships

### Inherited By

- [AttributedStringProtocol](foundation/attributedstringprotocol.md)

### Conforming Types

- [AttributedString](foundation/attributedstring.md)
- [AttributedSubstring](foundation/attributedsubstring.md)
- [DiscontiguousAttributedSubstring](foundation/discontiguousattributedsubstring.md)

## See Also

### Applying and Modifying Attributes

- [setAttributes(_:)](foundation/attributedstring/setattributes(_:).md)
- [mergeAttributes(_:mergePolicy:)](foundation/attributedstring/mergeattributes(_:mergepolicy:).md)
- [AttributedString.AttributeMergePolicy](foundation/attributedstring/attributemergepolicy.md)
- [replaceAttributes(_:with:)](foundation/attributedstring/replaceattributes(_:with:).md)
