<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeContainer/filter(inheritedByAddedText:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation18AttributeContainerV6filter20inheritedByAddedTextACSb_tF"
  },
  "title" : "filter(inheritedByAddedText:)"
}
-->

# filter(inheritedByAddedText:)

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

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

## Parameters

`inheritedByAddedText`

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

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)