Skip to content
GuidesChecked 20 November 2026

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.

Swift files, the ten most common words
WordFiles
FileManager.default696,320
UserDefaults.standard310,784
NSManagedObject92,544
ModelContainer85,760
NSFetchRequest58,304
FetchDescriptor46,080
ModelConfiguration44,480
kSecClass31,872
NSPersistentContainer30,016
SecItemAdd28,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.

Swift files by SwiftData word
SwiftData wordFiles
ModelContainer85,760
FetchDescriptor46,080
ModelConfiguration44,480
cloudKitDatabase5,112
VersionedSchema4,152
SchemaMigrationPlan1,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.

Swift files per 100 with ModelContainer
WordPer 100 containers
FetchDescriptor53.7
ModelConfiguration51.9
cloudKitDatabase6.0
VersionedSchema4.8
SchemaMigrationPlan1.7

Core Data and CloudKit

NSPersistentCloudKitContainer is in 10.5 files per 100 with NSPersistentContainer.

Swift files by Core Data and CloudKit word
Core Data and CloudKit wordFiles
NSManagedObject92,544
NSFetchRequest58,304
NSPersistentContainer30,016
CKRecord17,920
CKContainer9,872
NSPersistentCloudKitContainer3,148
CKSyncEngine1,310

iCloud files

UIDocument is in 3.5 times the files of NSUbiquitousKeyValueStore.

Swift files by iCloud files and settings word
iCloud files and settings wordFiles
UIDocument9,376
FileDocument6,544
NSUbiquitousKeyValueStore2,668
ubiquity container1,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.

Swift files by local storage word
Local storage wordFiles
FileManager.default696,320
UserDefaults.standard310,784
kSecClass31,872
SecItemAdd28,736
sqlite3_open14,384

The rarest

CKSyncEngine is in 1,310 files, the fewest of the 22.

NSPersistentCloudKitContainer is in 2.4 times the files of CKSyncEngine.

Swift files, the five least common words
The five least common wordsFiles
NSPersistentCloudKitContainer3,148
NSUbiquitousKeyValueStore2,668
ubiquity container1,622
SchemaMigrationPlan1,452
CKSyncEngine1,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.

Swift files, the most and the fewest of each group
GroupMostFewest
SwiftData85,7601,452
Core Data, CloudKit92,5441,310
iCloud files9,3761,622
Local storage696,32014,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.

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.