Skip to content

Instance MethodFoundationEssentials

filter(inheritedByAddedText:)

iOS 26.0+ iPadOS 26.0+ Mac Catalyst 26.0+ macOS 26.0+ tvOS 26.0+ visionOS 26.0+ watchOS 26.0+
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.