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

# NSRelativeSpecifier.RelativePosition

These constants are used by [`relativePosition`](/documentation/Foundation/NSRelativeSpecifier/relativePosition-swift.property) and [`relativePosition`](/documentation/Foundation/NSRelativeSpecifier/relativePosition-swift.property).

```
enum RelativePosition
```

## Topics

### Constants

[`NSRelativeAfter`](/documentation/Foundation/NSRelativeSpecifier/RelativePosition-swift.enum/after)

Specifies a position after another object.

[`NSRelativeBefore`](/documentation/Foundation/NSRelativeSpecifier/RelativePosition-swift.enum/before)

Specifies a position before another object.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)