---
title: type
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsattributedescription/type
---

# type

The attribute’s type.

## Declaration

```swift
var type: NSAttributeDescription.AttributeType { get set }
```

## Discussion

Discussion Don’t change an attribute’s type after you add its containing managed object model to a persistent store coordinator; otherwise, Core Data throws an exception.

## See Also

### Managing the type

- [attributeValueClassName](coredata/nsattributedescription/attributevalueclassname.md)
- [NSAttributeDescription.AttributeType](coredata/nsattributedescription/attributetype-swift.struct.md)
- [attributeType](coredata/nsattributedescription/attributetype-swift.property.md)
- [NSAttributeType](coredata/nsattributetype.md)
