---
title: "isKindOf(entity:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsentitydescription/iskindof(entity:)"
---

# isKindOf(entity:)

Returns a Boolean value that indicates whether the receiver is a sub-entity of another given entity.

## Declaration

```swift
func isKindOf(entity: NSEntityDescription) -> Bool
```

## Parameters

- `entity`: An entity.

## Return Value

Return Value true if the receiver is a sub-entity of entity, otherwise false.

## See Also

### Managing inheritance

- [subentitiesByName](coredata/nsentitydescription/subentitiesbyname.md)
- [subentities](coredata/nsentitydescription/subentities.md)
- [superentity](coredata/nsentitydescription/superentity.md)
