<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSManagedObjectID/isTemporaryID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSManagedObjectID(py)temporaryID"
  },
  "title" : "isTemporaryID"
}
-->

# isTemporaryID

A Boolean value that indicates whether the object ID is temporary.

```
var isTemporaryID: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver is temporary, otherwise <doc://com.apple.documentation/documentation/Swift/false>. Most object IDs return <doc://com.apple.documentation/documentation/Swift/false>. New objects inserted into a managed object context are assigned a temporary ID which is replaced with a permanent one once the object gets saved to a persistent store.

---

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)