Skip to content
GuidesChecked 20 November 2026

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.

Public Swift files by word, ViewModel = 100
WordFilesPer 100
ViewModel903,168100.0
Repository349,69638.7
Coordinator326,14436.1
Router218,62424.2
Presenter145,40816.1
import Observation102,91211.4
UseCase93,56810.4
Reducer60,4166.7
Interactor57,4726.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.

Words against Repository = 100
WordFilesPer 100
Repository349,696100.0
Coordinator326,14493.3
Router218,62462.5
Presenter145,40841.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.

The three words against Presenter = 100
WordFilesPer 100
Presenter145,408100.0
Router218,624150.4
Interactor57,47239.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.

The smallest four against UseCase = 100
WordFilesPer 100
import Observation102,912110.0
UseCase93,568100.0
Reducer60,41664.6
Interactor57,47261.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.

The level pairs
HigherLowerTimes
RepositoryCoordinator1.1
import ObservationUseCase1.1
ReducerInteractor1.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.

Each word against the next one down
WordNext wordTimes
ViewModelRepository2.6
RepositoryCoordinator1.1
CoordinatorRouter1.5
RouterPresenter1.5
PresenterObservation1.4
ObservationUseCase1.1
UseCaseReducer1.5
ReducerInteractor1.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.

ViewModel files over the word's files
WordTimes
Repository2.6
Coordinator2.8
Router4.1
Presenter6.2
Observation8.8
UseCase9.7
Reducer14.9
Interactor15.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.

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.