filter(runBoundaries:)
Returns a copy of the attribute container with only attributes that have the provided run boundaries.
Declaration
func filter(runBoundaries: AttributedString.AttributeRunBoundaries?) -> AttributeContainerParameters
- runBoundaries:
The required
runBoundariesvalue of the filtered attributes. Ifnilis provided, only attributes not bound to any specific boundary will be returned.
Return Value
A copy of the attribute container with only attributes whose runBoundaries property matches the provided value.