---
title: attributeType
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsattributedescription/attributetype-swift.property
---

# attributeType

The attribute’s type.

## Declaration

```swift
var attributeType: NSAttributeType { 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)
- [type](coredata/nsattributedescription/type.md)
- [NSAttributeDescription.AttributeType](coredata/nsattributedescription/attributetype-swift.struct.md)
- [NSAttributeType](coredata/nsattributetype.md)
