Skip to content
GuidesChecked 20 November 2026

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.

Swift files, all ten words
WordFiles
import Vision34,176
import Speech22,720
import CoreML19,520
import FoundationModels12,320
LanguageModelSession8,656
SystemLanguageModel7,392
import NaturalLanguage6,600
@Generable5,088
import VisionKit3,720
import CreateML561

Foundation Models

import FoundationModels is in 12,320 files, 2.4 times @Generable.

Swift files by Foundation Models word
Foundation Models wordFiles
import FoundationModels12,320
LanguageModelSession8,656
SystemLanguageModel7,392
@Generable5,088

Per 100 imports

SystemLanguageModel is in 60.0 files per 100 with import FoundationModels, and @Generable in 41.3.

LanguageModelSession is in 70.3 files for every 100 imports.

@Generable is in 58.8 files for every 100 with LanguageModelSession.

Swift files per 100 with import FoundationModels
WordPer 100 imports
LanguageModelSession70.3
SystemLanguageModel60.0
@Generable41.3

Other frameworks

import Vision is in 9.2 times the files of import VisionKit.

Swift files by other Apple framework
Other Apple frameworkFiles
import Vision34,176
import Speech22,720
import CoreML19,520
import NaturalLanguage6,600
import VisionKit3,720
import CreateML561

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.

Swift files per 100 with import Vision
Framework importPer 100 Vision
import Speech66.5
import CoreML57.1
import FoundationModels36.0
import NaturalLanguage19.3
import VisionKit10.9
import CreateML1.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.

Seven pairs of words, as a ratio of files
PairRatio
CoreML / CreateML34.8
FoundationModels / VisionKit3.3
Vision / FoundationModels2.8
FoundationModels / @Generable2.4
FoundationModels / NaturalLanguage1.9
Speech / FoundationModels1.8
CoreML / FoundationModels1.6

The rarest

import CreateML is in 561 files, the fewest of the 10.

Swift files, the five least common words
The five least common wordsFiles
SystemLanguageModel7,392
import NaturalLanguage6,600
@Generable5,088
import VisionKit3,720
import CreateML561

By group

The other frameworks spread 61 to 1, and Foundation Models only 2.4 to 1.

Swift files, the most and the fewest of each group
GroupMostFewest
Foundation Models12,3205,088
Other frameworks34,176561

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.

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.