---
title: NSAttributeType
framework: coredata
role: symbol
role_heading: Enumeration
path: coredata/nsattributetype
---

# NSAttributeType

The types of attribute that Core Data supports.

## Declaration

```swift
enum NSAttributeType
```

## Mentioned in

Configuring Attributes

## Overview

Overview Core Data supports the following attribute types, which differentiate between bit sizes to enable data-store independence. For some types, a scalar option is available.  |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |   |  |  |  note: If your application uses Binary Large Objects (BLOBs) like image and sound data, prefer to store its binary data outside of the Core Data store.

## Topics

### Attribute types

- [NSAttributeType.binaryDataAttributeType](coredata/nsattributetype/binarydataattributetype.md)
- [NSAttributeType.booleanAttributeType](coredata/nsattributetype/booleanattributetype.md)
- [NSAttributeType.compositeAttributeType](coredata/nsattributetype/compositeattributetype.md)
- [NSAttributeType.dateAttributeType](coredata/nsattributetype/dateattributetype.md)
- [NSAttributeType.decimalAttributeType](coredata/nsattributetype/decimalattributetype.md)
- [NSAttributeType.doubleAttributeType](coredata/nsattributetype/doubleattributetype.md)
- [NSAttributeType.floatAttributeType](coredata/nsattributetype/floatattributetype.md)
- [NSAttributeType.integer16AttributeType](coredata/nsattributetype/integer16attributetype.md)
- [NSAttributeType.integer32AttributeType](coredata/nsattributetype/integer32attributetype.md)
- [NSAttributeType.integer64AttributeType](coredata/nsattributetype/integer64attributetype.md)
- [NSAttributeType.objectIDAttributeType](coredata/nsattributetype/objectidattributetype.md)
- [NSAttributeType.stringAttributeType](coredata/nsattributetype/stringattributetype.md)
- [NSAttributeType.transformableAttributeType](coredata/nsattributetype/transformableattributetype.md)
- [NSAttributeType.undefinedAttributeType](coredata/nsattributetype/undefinedattributetype.md)
- [NSAttributeType.URIAttributeType](coredata/nsattributetype/uriattributetype.md)
- [NSAttributeType.UUIDAttributeType](coredata/nsattributetype/uuidattributetype.md)

### Initializers

- [init(rawValue:)](coredata/nsattributetype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Standard attributes

- [NSPropertyDescription](coredata/nspropertydescription.md)
- [NSAttributeDescription](coredata/nsattributedescription.md)
- [NSRelationshipDescription](coredata/nsrelationshipdescription.md)
