---
title: NSAttributeType.compositeAttributeType
framework: coredata
role: symbol
role_heading: Case
path: coredata/nsattributetype/compositeattributetype
---

# NSAttributeType.compositeAttributeType

An attribute that derives its value by composing other attributes.

## Declaration

```swift
case compositeAttributeType
```

## Discussion

Discussion Composite attributes support all attribute types except the following: NSAttributeType.undefinedAttributeType NSAttributeType.objectIDAttributeType NSAttributeType.binaryDataAttributeType (when allowsExternalBinaryDataStorage is true) For more information, see NSCompositeAttributeDescription.

## See Also

### Attribute types

- [NSAttributeType.binaryDataAttributeType](coredata/nsattributetype/binarydataattributetype.md)
- [NSAttributeType.booleanAttributeType](coredata/nsattributetype/booleanattributetype.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)
