Swift architecture words counted in public files
Nine architecture words in public Swift files. ViewModel leads at 903,168, counted on 1 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
All nine words
ViewModel is in 903,168 public Swift files, 2.6 times Repository.
The table sets every word against ViewModel, which is the 100.
| Word | Files | Per 100 |
|---|---|---|
| ViewModel | 903,168 | 100.0 |
| Repository | 349,696 | 38.7 |
| Coordinator | 326,144 | 36.1 |
| Router | 218,624 | 24.2 |
| Presenter | 145,408 | 16.1 |
| import Observation | 102,912 | 11.4 |
| UseCase | 93,568 | 10.4 |
| Reducer | 60,416 | 6.7 |
| Interactor | 57,472 | 6.4 |
The second tier
Repository is in 1.1 times the files of Coordinator, which is inside the rounding of a code search.
Repository and Coordinator are level, at 349,696 and 326,144 files.
Coordinator is in 1.5 times the files of Router, and in 2.2 times those of Presenter.
| Word | Files | Per 100 |
|---|---|---|
| Repository | 349,696 | 100.0 |
| Coordinator | 326,144 | 93.3 |
| Router | 218,624 | 62.5 |
| Presenter | 145,408 | 41.6 |
Presenter, Router, Interactor
Router is in 218,624 files, 1.5 times Presenter, and Interactor in 57,472.
Router is in 3.8 times the files of Interactor.
| Word | Files | Per 100 |
|---|---|---|
| Presenter | 145,408 | 100.0 |
| Router | 218,624 | 150.4 |
| Interactor | 57,472 | 39.5 |
The smallest words
UseCase is in 93,568 files, 1.5 times Reducer, and Reducer is in 1.1 times Interactor.
Reducer is in 6.7 files for every 100 that hold ViewModel.
| Word | Files | Per 100 |
|---|---|---|
| import Observation | 102,912 | 110.0 |
| UseCase | 93,568 | 100.0 |
| Reducer | 60,416 | 64.6 |
| Interactor | 57,472 | 61.4 |
Observation
It is the only Apple framework in the table, and it is in 1.1 times the files of UseCase.
import Observation is in 102,912 files, 11.4 for every 100 that hold ViewModel.
Presenter is in 1.4 times the files of import Observation.
ViewModel is in 8.8 times the files of import Observation, and Repository in 3.4 times.
import Observation counts the framework's own import, so it leaves out files that use observable state through the import of a larger framework.
UseCase
Repository is in 3.7 times the files of UseCase, and Router in 2.3 times.
UseCase is in 93,568 files, and ViewModel is in 9.7 times that.
UseCase is in 10.4 files for every 100 that hold ViewModel.
UseCase is in 1.6 times the files of Interactor, and in 1.5 times those of Reducer.
Coordinator is in 3.5 times the files of UseCase, and Presenter in 1.6 times.
Six of the other eight words are in more files than UseCase, and only Reducer and Interactor are in fewer.
Level pairs
Repository and Coordinator, import Observation and UseCase, and Reducer and Interactor are close enough that a code search cannot rank them.
Three pairs of words are level, each within 1.1 times of the other.
Large counts come back rounded, so a gap under about 10 percent is level.
| Higher | Lower | Times |
|---|---|---|
| Repository | Coordinator | 1.1 |
| import Observation | UseCase | 1.1 |
| Reducer | Interactor | 1.1 |
Step to the next word
Each word is set against the next one down, from ViewModel to Interactor.
ViewModel leads the second word by 2.6 times, and no other step is above 1.5.
The steps from Repository to Interactor run from 1.1 to 1.5 times.
| Word | Next word | Times |
|---|---|---|
| ViewModel | Repository | 2.6 |
| Repository | Coordinator | 1.1 |
| Coordinator | Router | 1.5 |
| Router | Presenter | 1.5 |
| Presenter | Observation | 1.4 |
| Observation | UseCase | 1.1 |
| UseCase | Reducer | 1.5 |
| Reducer | Interactor | 1.1 |
Times below ViewModel
UseCase is 9.7 times below ViewModel, import Observation 8.8, Presenter 6.2, Router 4.1, Coordinator 2.8 and Repository 2.6.
ViewModel is in 15.7 times the files of Interactor, and 14.9 times those of Reducer.
ViewModel is in 903,168 files, the base for every ratio in the table.
| Word | Times |
|---|---|
| Repository | 2.6 |
| Coordinator | 2.8 |
| Router | 4.1 |
| Presenter | 6.2 |
| Observation | 8.8 |
| UseCase | 9.7 |
| Reducer | 14.9 |
| Interactor | 15.7 |
What is in the file
A count for each word
Nine words, with the number of public Swift files that hold each.
Ratios you can quote
ViewModel is in 2.6 times the files of Repository.
One base to compare
Every word is set against ViewModel, 100 files, in one table.
No code and no names
The file holds counts only, with no repository and no file.
How the files were counted
One search for each word.
Pick the words
Eight pattern words and the one Apple framework import for observable state.
Search for each
A pattern word was matched as a word in files of the Swift language, and the import as exact text.
Read the count
Each of the nine searches was one request, at least seven seconds after the last.
Keep the number
A CSV row keeps the word, its count and its search, and no code.
Which shape a board package should expose
ViewModel is the pattern word in 903,168 files, well ahead of Repository at 349,696, Coordinator at 326,144 and Router at 218,624. A board package that exposes its state as a view model fits the most common shape.
Fewer files name a Reducer, 60,416, or an Interactor, 57,472, than import Observation, which 102,912 do. State held in an observable model is the one to offer first, since it is more common than either.
What these numbers leave out
- These are files and not apps, and not which architecture an app follows.
- ViewModel, Repository and Router are common names, so a class of that name in any pattern counts, and a file can hold several.
- import Observation counts the framework's own import and not every use of observable state.
- Large counts come back rounded, so two words within about 10 percent of each other are level.
- Older words have had years more to collect files, and a copied sample counts each time.
- The search leaves out most forks, and no code was read.
What people ask about Swift architecture
Which architecture word is most common in Swift?
ViewModel, in 903,168 public Swift files, 2.6 times the next word, Repository.
How many Swift files hold Coordinator?
Coordinator is in 326,144 files, 36.1 for every 100 that hold ViewModel.
How many Swift files hold Presenter?
Presenter is in 145,408 files, and ViewModel is in 6.2 times that.
Is Repository more common than Coordinator?
Slightly, 349,696 files to 326,144, but 1.1 times is level within the rounding.
How common is Interactor?
It is the rarest word, in 57,472 files, 39.5 for every 100 that hold Presenter.
How common is Reducer?
Reducer is in 60,416 files, and ViewModel is in 14.9 times that.
How common is UseCase?
UseCase is in 93,568 files, and Repository is in 3.7 times that.
How many files use the Observation framework?
import Observation is in 102,912 files, 11.4 for every 100 that hold ViewModel.
Does a word show which architecture an app follows?
No. The words are common names, and a file can hold several of them.
Does the file hold any code?
No. It holds a count and the search for each word.
Are older words ahead only because they are older?
Partly, since older words have had more years to collect public files.
May a site quote these figures?
Yes. Cite this page and give 1 November 2026 as the date of the count.
More Swift code, counted
More counts for Swift developers.
Requests for the app you structure
Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.