AttributedTextSelection.Attributes
struct · iOS 26.0+ · SDK 27.1
struct Attributes<Text>A sequence of all attribute values a selection has in a certain text. The values of a selection are the attribute values of each run that is fully or partially selected, or the typing attributes in the case the selection is an insertion point. By default, the sequence contains the attribute container for every run or the typing attributes. Use the ``Attributes``' subscript to obtain only the values for a single attribute: selection.attributes(in: text)[\.foregroundColor].contains(.red)
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AttributedTextSelection.Attributes.makeIterator()
The iOS SDK compiler rejected this binding: 'some' types are only permitted in properties, subscripts, and functions
AttributedTextSelection.Attributes.subscript(_:)
This declaration needs Swift generic type arguments. (no canonical witness for K)
AttributedTextSelection.Attributes.subscript(_:)
Passing a Swift type itself is not supported.