<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/AttributedTextSelection/Indices/insertionPoint(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI23AttributedTextSelectionV7IndicesO14insertionPointyAE10Foundation0C6StringV5IndexVcAEmF"
  },
  "title" : "AttributedTextSelection.Indices.insertionPoint(_:)"
}
-->

# AttributedTextSelection.Indices.insertionPoint(_:)

The index of a single insertion point.

```
case insertionPoint(AttributedString.Index)
```

## Discussion

The an insertion point at the `startIndex` of an attributed string
is equivalent to a caret preceding the first character. An insertion
point using `endIndex` is valid. It is equivalent to a caret located
after the last character in the attributed string.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)