<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "swift: 4.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKRecord/recordType-6v7au",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So8CKRecordC8CloudKitE10recordTypeSSvp"
  },
  "title" : "recordType"
}
-->

# recordType

The value that your app defines to identify the type of record.

```
var recordType: CKRecord.RecordType { get }
```

## Discussion

Use this value to differentiate between different record types in your app. The value is primarily for your benefit, so choose record types that represent the data in the corresponding records.

CloudKit provides two system-defined record types:

|Record Type                                                                     |Description                             |
|--------------------------------------------------------------------------------|----------------------------------------|
|``doc://com.apple.cloudkit/documentation/CloudKit/CKRecordTypeUserRecord-49k30``|Identifies records that represent users.|
|``doc://com.apple.cloudkit/documentation/CloudKit/CKRecordTypeShare-8b6yt``     |Identifies records that the user shares.|

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)