Foundation Models, Core ML and Vision in Swift
Import Vision leads 10 on device framework words counted in Swift files on 1 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
All ten words
import Vision is in 34,176 files, 2.8 times import FoundationModels.
| Word | Files |
|---|---|
| import Vision | 34,176 |
| import Speech | 22,720 |
| import CoreML | 19,520 |
| import FoundationModels | 12,320 |
| LanguageModelSession | 8,656 |
| SystemLanguageModel | 7,392 |
| import NaturalLanguage | 6,600 |
| @Generable | 5,088 |
| import VisionKit | 3,720 |
| import CreateML | 561 |
Foundation Models
import FoundationModels is in 12,320 files, 2.4 times @Generable.
| Foundation Models word | Files |
|---|---|
| import FoundationModels | 12,320 |
| LanguageModelSession | 8,656 |
| SystemLanguageModel | 7,392 |
| @Generable | 5,088 |
Other frameworks
import Vision is in 9.2 times the files of import VisionKit.
| Other Apple framework | Files |
|---|---|
| import Vision | 34,176 |
| import Speech | 22,720 |
| import CoreML | 19,520 |
| import NaturalLanguage | 6,600 |
| import VisionKit | 3,720 |
| import CreateML | 561 |
Per 100 Vision
import Speech is in 66.5 files per 100 with import Vision, import CoreML in 57.1 and import NaturalLanguage in 19.3.
import FoundationModels is in 36.0 files for every 100 with import Vision.
import VisionKit is in 10.9 per 100 and import CreateML in 1.6.
| Framework import | Per 100 Vision |
|---|---|
| import Speech | 66.5 |
| import CoreML | 57.1 |
| import FoundationModels | 36.0 |
| import NaturalLanguage | 19.3 |
| import VisionKit | 10.9 |
| import CreateML | 1.6 |
Seven pairs
Seven pairs of words set one framework against another, and the ratios run from 1.6 to 34.8.
import CoreML is in 34.8 times the files of import CreateML.
import FoundationModels is in 3.3 times the files of import VisionKit and 1.9 times those of import NaturalLanguage.
| Pair | Ratio |
|---|---|
| CoreML / CreateML | 34.8 |
| FoundationModels / VisionKit | 3.3 |
| Vision / FoundationModels | 2.8 |
| FoundationModels / @Generable | 2.4 |
| FoundationModels / NaturalLanguage | 1.9 |
| Speech / FoundationModels | 1.8 |
| CoreML / FoundationModels | 1.6 |
The rarest
import CreateML is in 561 files, the fewest of the 10.
| The five least common words | Files |
|---|---|
| SystemLanguageModel | 7,392 |
| import NaturalLanguage | 6,600 |
| @Generable | 5,088 |
| import VisionKit | 3,720 |
| import CreateML | 561 |
By group
The other frameworks spread 61 to 1, and Foundation Models only 2.4 to 1.
| Group | Most | Fewest |
|---|---|---|
| Foundation Models | 12,320 | 5,088 |
| Other frameworks | 34,176 | 561 |
What is in the file
A count for each word
4 Foundation Models words and 6 words for the other Apple frameworks.
Words set against a base
Foundation Models words per 100 imports, and the others per 100 Vision.
Ratios you can quote
import CoreML is in 34.8 times the files of import CreateML.
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 10 searches
Each search names one framework import or Foundation Models type, matched 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
A result called incomplete by the service was requested again, three times at most.
Keep the count
Each CSV row holds a word, its group, its count and its search. No code is kept.
What a board can do with the device
Text is the material of a feedback board, and the language frameworks are the ones worth knowing. NaturalLanguage is in 6,600 files and FoundationModels in 12,320, with LanguageModelSession, the word that starts a request to the model, in 8,656.
Vision, in 34,176 files, and Speech, in 22,720, are the better known pair, so code that reads a photo or a voice note is familiar to more developers than code that summarizes requests. A board that adds either one asks its readers to learn little.
What these numbers leave out
- These are files and not apps or users, and not how many people use the features.
- Large counts are rounded by the search, so two words within 10 percent of each other count as level.
- Only Apple words are counted here, so files that run a model another way are missed.
- An import in a file does not show that the file calls the framework.
- Only public GitHub is counted, so closed source apps are not in these numbers.
- Copied samples count each time they appear, most forks are left out of the search, and no code was read.
Swift on device model questions
How many Swift files import Foundation Models?
import FoundationModels is in 12,320 public files.
Is Foundation Models used more than Core ML?
No. import CoreML is in 19,520 files, 1.6 times import FoundationModels.
How many files start a model session?
LanguageModelSession is in 8,656 files, 70.3 for every 100 with the import.
How common is structured output?
@Generable is in 5,088 files, 41.3 for every 100 with import FoundationModels.
Which on device word is in the most files?
import Vision, in 34,176 files, the most of the 10.
How many files import the speech framework?
import Speech is in 22,720 files, 1.2 times import CoreML.
How many files train a model with Create ML?
import CreateML is in 561 files, the fewest of the 10.
Is the natural language framework common?
import NaturalLanguage is in 6,600 files, about half of import FoundationModels.
How does Vision compare with Core ML?
import Vision is in 34,176 files, 1.8 times import CoreML with 19,520.
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. A count may be quoted when the page links back here and gives 1 November 2026 as the count date.
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.
How Swift apps log, crash and test, counted in public files
17 logging, crash report and test words counted.
iOS permission keys and entitlements counted on GitHub
71 keys, from location to app groups.
Mac menu bar, login item and system access code counted
14 menu bar, login item and system words counted.
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.