<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSPositionalSpecifier/InsertionPosition",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSInsertionPosition"
  },
  "title" : "NSPositionalSpecifier.InsertionPosition"
}
-->

# NSPositionalSpecifier.InsertionPosition

The following constants are defined by `NSPositionalSpecifier` to specify an insertion position.

```
enum InsertionPosition
```

## Overview

These constants are described in [`NSPositionalSpecifier`](/documentation/Foundation/NSPositionalSpecifier).

## Topics

### Constants

[`NSPositionAfter`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/after)

Specifies a position after another object.

[`NSPositionBefore`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/before)

Specifies a position before another object.

[`NSPositionBeginning`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/beginning)

Specifies a position at the beginning of a collection.

[`NSPositionEnd`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/end)

Specifies a position at the end of a collection.

[`NSPositionReplace`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/replace)

Specifies a position in the place of another object.

[`NSPositionAfter`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/after)

Specifies a position after another object.

[`NSPositionBefore`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/before)

Specifies a position before another object.

[`NSPositionBeginning`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/beginning)

Specifies a position at the beginning of a collection.

[`NSPositionEnd`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/end)

Specifies a position at the end of a collection.

[`NSPositionReplace`](/documentation/Foundation/NSPositionalSpecifier/InsertionPosition/replace)

Specifies a position in the place of another object.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)