Created
August 25, 2020 17:38
-
-
Save ggirotto/b19da6b44f5bc271a9c1e0c20fa7f7b3 to your computer and use it in GitHub Desktop.
School Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct School: CKCodable { | |
| var cloudKitRecordType: String { | |
| return "School" | |
| } | |
| var cloudKitIdentifier: String { | |
| return id | |
| } | |
| var id = UUID().uuidString | |
| var name: String! | |
| var location: CLLocation! | |
| var students: [Person]! | |
| var director: Person! | |
| var books: [Book]! | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment