Skip to content

Instantly share code, notes, and snippets.

@jazzedge
Created November 30, 2017 04:22
Show Gist options
  • Select an option

  • Save jazzedge/69be9df7d9583abea890c77636cb01d1 to your computer and use it in GitHub Desktop.

Select an option

Save jazzedge/69be9df7d9583abea890c77636cb01d1 to your computer and use it in GitHub Desktop.
The table shows possible field types, as they appear in CloudKit Dashboard,
and their equivalent CloudKit framework classes.
Field Type
Class
Description
Asset
CKAsset
A large file that is associated with a record but stored separately
Bytes
NSData
A wrapper for byte buffers that is stored with the record
Date/Time
NSDate
A single point in time
Double
NSNumber
A double
Int(64)
NSNumber
An integer
Location
CLLocation
A geographical coordinate and altitude
Reference
CKReference
A relationship from one object to another
String
NSString
An immutable text string
List
NSArray
Arrays of any of the above field types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment