Structure
DiscontiguousAttributedSubstring
iOS 26.0+
iPadOS 26.0+
Mac Catalyst 26.0+
macOS 26.0+
tvOS 26.0+
visionOS 26.0+
watchOS 26.0+
A discontiguous portion of an attributed string.
@dynamicMemberLookup struct DiscontiguousAttributedSubstring
Topics
Instance Properties
var base: AttributedStringThe underlying attributed string that the discontiguous attributed substring derives from.var characters: DiscontiguousSlice<AttributedString.CharacterView>The characters of the discontiguous attributed string, as a view into the underlying string.var runs: AttributedString.RunsThe attributed runs of the discontiguous attributed string, as a view into the underlying string.var unicodeScalars: DiscontiguousSlice<AttributedString.UnicodeScalarView>The Unicode scalars of the discontiguous attributed string, as a view into the underlying string.
Subscripts
subscript(_:)Returns a discontiguous substring of this discontiguous attributed string using a set of ranges to indicate the discontiguous substring bounds.subscript(dynamicMember:)Returns an attribute value that a key path indicates.
Default Implementations
Relationships
Conforms To
AttributedStringAttributeMutationSwift.CopyableSwift.CustomStringConvertibleSwift.EquatableSwift.EscapableSwift.HashableSwift.SendableSwift.SendableMetatype