Skip to content

StructureFoundationEssentials

AttributedString.Index

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
A type that represents the position of a character or code unit within an attributed string.
struct Index

Topics

Operators

Initializers

Instance Methods

  • func isValid(within:)
    Indicates whether the index is valid for use with the provided discontiguous attributed string.

Relationships

Conforms To

  • Swift.Comparable
  • Swift.Equatable
  • Swift.Sendable
  • Swift.SendableMetatype