AttributedString.Index A type that represents the position of a character or code unit within an attributed string. Declarationstruct Index TopicsInitializersinit(_:within:)Instance MethodsisValid(within:)isValid(within:) RelationshipsConforms ToComparableEquatableSendableSendableMetatype See AlsoModifying an Attributed Stringinsert(_:at:)removeSubrange(_:)replaceSubrange(_:with:)