SwiftData, Core Data and CloudKit in Swift
22 SwiftData, Core Data, CloudKit and storage words counted in public Swift files on 1 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
The top ten
FileManager.default is in 696,320 files, 2.2 times UserDefaults.standard.
| Word | Files |
|---|---|
| FileManager.default | 696,320 |
| UserDefaults.standard | 310,784 |
| NSManagedObject | 92,544 |
| ModelContainer | 85,760 |
| NSFetchRequest | 58,304 |
| FetchDescriptor | 46,080 |
| ModelConfiguration | 44,480 |
| kSecClass | 31,872 |
| NSPersistentContainer | 30,016 |
| SecItemAdd | 28,736 |
SwiftData
ModelContainer is in 2.9 times the files of NSPersistentContainer.
NSManagedObject, the Core Data base class, is still in 92,544 files, 1.1 times ModelContainer.
| SwiftData word | Files |
|---|---|
| ModelContainer | 85,760 |
| FetchDescriptor | 46,080 |
| ModelConfiguration | 44,480 |
| cloudKitDatabase | 5,112 |
| VersionedSchema | 4,152 |
| SchemaMigrationPlan | 1,452 |
Per 100 containers
cloudKitDatabase, the setting that syncs a SwiftData store through iCloud, is in 5,112 files, and SchemaMigrationPlan in 1.7 per 100.
cloudKitDatabase is in 6.0 files for every 100 with ModelContainer.
VersionedSchema is in 4.8 files per 100 and SchemaMigrationPlan in 1.7.
| Word | Per 100 containers |
|---|---|
| FetchDescriptor | 53.7 |
| ModelConfiguration | 51.9 |
| cloudKitDatabase | 6.0 |
| VersionedSchema | 4.8 |
| SchemaMigrationPlan | 1.7 |
Core Data and CloudKit
NSPersistentCloudKitContainer is in 10.5 files per 100 with NSPersistentContainer.
| Core Data and CloudKit word | Files |
|---|---|
| NSManagedObject | 92,544 |
| NSFetchRequest | 58,304 |
| NSPersistentContainer | 30,016 |
| CKRecord | 17,920 |
| CKContainer | 9,872 |
| NSPersistentCloudKitContainer | 3,148 |
| CKSyncEngine | 1,310 |
iCloud files
UIDocument is in 3.5 times the files of NSUbiquitousKeyValueStore.
| iCloud files and settings word | Files |
|---|---|
| UIDocument | 9,376 |
| FileDocument | 6,544 |
| NSUbiquitousKeyValueStore | 2,668 |
| ubiquity container | 1,622 |
Local storage
UserDefaults.standard is in 9.8 times the files of kSecClass.
SecItemAdd is in 90.2 files for every 100 with kSecClass, and 2.0 times the files of sqlite3_open.
| Local storage word | Files |
|---|---|
| FileManager.default | 696,320 |
| UserDefaults.standard | 310,784 |
| kSecClass | 31,872 |
| SecItemAdd | 28,736 |
| sqlite3_open | 14,384 |
The rarest
CKSyncEngine is in 1,310 files, the fewest of the 22.
NSPersistentCloudKitContainer is in 2.4 times the files of CKSyncEngine.
| The five least common words | Files |
|---|---|
| NSPersistentCloudKitContainer | 3,148 |
| NSUbiquitousKeyValueStore | 2,668 |
| ubiquity container | 1,622 |
| SchemaMigrationPlan | 1,452 |
| CKSyncEngine | 1,310 |
By group
The Core Data and CloudKit group spreads 71 to 1, the widest.
SwiftData spreads 59 to 1, local storage 48 to 1 and iCloud files and settings 6 to 1.
| Group | Most | Fewest |
|---|---|---|
| SwiftData | 85,760 | 1,452 |
| Core Data, CloudKit | 92,544 | 1,310 |
| iCloud files | 9,376 | 1,622 |
| Local storage | 696,320 | 14,384 |
What is in the file
A count for each word
6 SwiftData words, 7 for Core Data and CloudKit, 4 for iCloud and 5 for local storage.
Words set against the container
Each SwiftData word per 100 files with ModelContainer.
Ratios you can quote
FileManager.default is in 2.2 times the files of UserDefaults.standard.
No code and no names
The file holds counts only, with no repository and no developer.
How the files were counted
One search per word.
Write 22 searches
Each search names one storage or sync word, matched as a word or as exact text in Swift files.
Ask the code search
One request per search, with at least seven seconds between requests.
Ask again when incomplete
When the service called a result incomplete, the same search was sent again, up to three times.
Keep the count
The CSV has one row per word, with its count and its search, and never any code.
Where a board keeps what a person did
Votes cast and drafts half written need a home on the device, and the counts show the common ones. UserDefaults.standard is in 310,784 files and suits a few small flags, while FileManager.default, in 696,320, covers anything larger. SwiftData's ModelContainer is in 85,760 files, ahead of Core Data's NSPersistentContainer at 30,016.
Sync across a person's devices is the rare part. The cloudKitDatabase setting is in 5,112 files and CKSyncEngine in 1,310, so keeping votes in step on every device a person owns is uncommon in the code counted. A board that stores votes on a server gives that for free, with no iCloud code in the app.
What these numbers leave out
- These are files and not apps, downloads or users, and not how many users sync.
- Counts above a few thousand are rounded by the search, so two words within 10 percent of each other are level.
- ModelContainer and NSManagedObject are common names, so a class of that name in another library counts too.
- A file that uses Core Data through a wrapper may not name its types.
- A word in a file does not show that the app uses that store when it runs.
- Apple type names also appear in sample code and tutorials, so some files only teach the call.
- Older words have had years longer to collect files, and a copied sample counts each time.
- The search leaves out most forks, and no code was read.
Swift storage questions
Do more Swift files use SwiftData or Core Data?
ModelContainer is in 85,760 files and NSPersistentContainer in 30,016, but NSManagedObject is in 92,544.
How common is SwiftData iCloud sync?
cloudKitDatabase is in 5,112 files, 6.0 for every 100 with ModelContainer.
How common is a SwiftData migration plan?
SchemaMigrationPlan is in 1,452 files, 1.7 for every 100 with ModelContainer.
Is UserDefaults or the file system named more?
FileManager.default, in 696,320 files against 310,784, which is 2.2 times.
How many files use the Keychain?
kSecClass is in 31,872 files and SecItemAdd in 28,736.
How many files name the CloudKit sync engine?
CKSyncEngine is in 1,310 files, 7.3 for every 100 with CKRecord.
How common is plain SQLite in Swift?
sqlite3_open is in 14,384 files, against 28,736 for SecItemAdd.
Which word is in the fewest files?
CKSyncEngine, in 1,310 files, the fewest of the 22.
How common is the SwiftData query type?
FetchDescriptor is in 46,080 files, 53.7 for every 100 with ModelContainer.
Does this count apps?
No. It counts files, and a copied sample counts each time.
Does the file hold any code?
No. It holds a count and the search for each word.
May a site quote these figures?
Yes. Quote any count beside a link to this page and the count date, 1 November 2026.
More Swift code, counted
More counts for Swift and iOS developers.
SwiftUI vs UIKit and 22 more Apple frameworks, counted
24 Apple frameworks counted in public Swift files.
iOS permission keys and entitlements counted on GitHub
71 keys, from location to app groups.
SwiftUI views and modifiers counted in public Swift files
19 SwiftUI words counted in public Swift files.
How Swift apps log, crash and test, counted in public files
17 logging, crash report and test words counted.
ViewModel, Coordinator and Reducer counted in Swift files
Nine architecture words, with ViewModel in 903,168 files.
Collect feature requests in an iOS app
Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.