---
title: "filter(inheritedByAddedText:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/attributecontainer/filter(inheritedbyaddedtext:)"
---

# filter(inheritedByAddedText:)

Returns a copy of the attribute container with only attributes that specify the provided inheritance behavior.

## Declaration

```swift
func filter(inheritedByAddedText: Bool) -> AttributeContainer
```

## Parameters

- `inheritedByAddedText`: An inheritedByAddedText value to filter. Attributes matching this value are included in the returned container.

## Return Value

Return Value A copy of the attribute container with only attributes whose inheritedByAddedText property matches the provided value.
