<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSOrderedCollectionDifferenceCalculationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSOrderedCollectionDifferenceCalculationOptions"
  },
  "title" : "NSOrderedCollectionDifferenceCalculationOptions"
}
-->

# NSOrderedCollectionDifferenceCalculationOptions

Constants that specify the options to use when creating an ordered collection difference.

```
struct NSOrderedCollectionDifferenceCalculationOptions
```

## Topics

### Creating Difference Calculation Options

[`init(rawValue:)`](/documentation/Foundation/NSOrderedCollectionDifferenceCalculationOptions/init(rawValue:))

Creates a set of difference calculation options.

### Difference Calculation Options

[`NSOrderedCollectionDifferenceCalculationInferMoves`](/documentation/Foundation/NSOrderedCollectionDifferenceCalculationOptions/inferMoves)

An option that identifies insertions or removals as moves.

[`NSOrderedCollectionDifferenceCalculationOmitInsertedObjects`](/documentation/Foundation/NSOrderedCollectionDifferenceCalculationOptions/omitInsertedObjects)

An option that indicates that the difference should omit references to the insertions.

[`NSOrderedCollectionDifferenceCalculationOmitRemovedObjects`](/documentation/Foundation/NSOrderedCollectionDifferenceCalculationOptions/omitRemovedObjects)

An option that indicates that the difference should omit references to the removals.

## Relationships

### Conforms To

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

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

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

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

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

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

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

[`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)