---
title: isInserted
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsmanagedobject/isinserted
---

# isInserted

A Boolean value that indicates whether the managed object has been inserted in a managed object context.

## Declaration

```swift
var isInserted: Bool { get }
```

## Discussion

Discussion true if the receiver has been inserted in a managed object context, otherwise false. If the receiver is a fault, accessing this property does not cause it to fire.

## See Also

### Getting State Information

- [managedObjectContext](coredata/nsmanagedobject/managedobjectcontext.md)
- [hasChanges](coredata/nsmanagedobject/haschanges.md)
- [isUpdated](coredata/nsmanagedobject/isupdated.md)
- [isDeleted](coredata/nsmanagedobject/isdeleted.md)
- [isFault](coredata/nsmanagedobject/isfault.md)
- [faultingState](coredata/nsmanagedobject/faultingstate.md)
- [hasFault(forRelationshipNamed:)](coredata/nsmanagedobject/hasfault(forrelationshipnamed:).md)
- [hasPersistentChangedValues](coredata/nsmanagedobject/haspersistentchangedvalues.md)
