SwiftUI views and modifiers counted
Counts of 19 SwiftUI words in public Swift files, read on 1 November 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
The top ten
withAnimation is in more Swift files than any other word.
| Word | Files |
|---|---|
| withAnimation | 308,736 |
| NavigationLink | 223,488 |
| GeometryReader | 203,008 |
| LazyVGrid | 108,800 |
| contextMenu | 94,848 |
| LazyVStack | 93,056 |
| searchable | 62,784 |
| confirmationDialog | 56,320 |
| refreshable | 52,608 |
| fullScreenCover | 47,424 |
Lists and scrolling
LazyVGrid is in 1.2 times the files of LazyVStack.
| Lists and scrolling word | Files |
|---|---|
| LazyVGrid | 108,800 |
| LazyVStack | 93,056 |
| ScrollViewReader | 42,304 |
| LazyHStack | 11,312 |
| containerRelativeFrame | 5,976 |
Layout and animation
withAnimation is in 1.5 times the files of GeometryReader.
ViewThatFits, which picks the first child that fits, is in 3.7 times the files of AnyLayout.
| Layout and animation word | Files |
|---|---|
| withAnimation | 308,736 |
| GeometryReader | 203,008 |
| PreferenceKey | 33,344 |
| ViewThatFits | 21,056 |
| matchedGeometryEffect | 12,576 |
| AnyLayout | 5,720 |
| PhaseAnimator | 1,868 |
By group
The layout group has both the top word and the rarest.
The lists group spreads 18 to 1, from LazyVGrid to containerRelativeFrame, and navigation 6.8 to 1.
| Group | Top | Median | Fewest |
|---|---|---|---|
| Lists | 108,800 | 42,304 | 5,976 |
| Navigation | 223,488 | 56,320 | 32,768 |
| Layout | 308,736 | 21,056 | 1,868 |
Ratios
The gap between two words in the same group runs from 1.2 times, LazyVGrid against LazyVStack, to 9.6 times, GeometryReader against ViewThatFits.
Seven pairs of words, from 1.2 to 9.6 times.
The table gives seven pairs, each a more common word over a less common one in its group.
| Word over word | Times |
|---|---|
| LazyVGrid over LazyVStack | 1.2 |
| LazyVStack over LazyHStack | 8.2 |
| NavigationLink over contextMenu | 2.4 |
| contextMenu over swipeActions | 2.9 |
| withAnimation over GeometryReader | 1.5 |
| GeometryReader over ViewThatFits | 9.6 |
| ViewThatFits over AnyLayout | 3.7 |
The lower words
ScrollViewReader is in 13.3 files per 1,000 that import SwiftUI, PreferenceKey in 10.5 and swipeActions in 10.3.
Nine words are in fewer than 14 files per 1,000.
ViewThatFits is in 6.6 and PhaseAnimator in 0.6.
| Word | Per 1,000 |
|---|---|
| ScrollViewReader | 13.3 |
| PreferenceKey | 10.5 |
| swipeActions | 10.3 |
| ViewThatFits | 6.6 |
| matchedGeometryEffect | 3.9 |
| LazyHStack | 3.5 |
| containerRelativeFrame | 1.9 |
| AnyLayout | 1.8 |
| PhaseAnimator | 0.6 |
The rarest
PhaseAnimator is in 1,868 files, the fewest of the 19.
The most common word, withAnimation, is in 165.3 times the files of PhaseAnimator.
| Five least common words | Files |
|---|---|
| matchedGeometryEffect | 12,576 |
| LazyHStack | 11,312 |
| containerRelativeFrame | 5,976 |
| AnyLayout | 5,720 |
| PhaseAnimator | 1,868 |
What is in the file
A count for each word
5 lists and scrolling words, 7 navigation words and 7 layout words.
A size against all SwiftUI files
Each of the top ten per 1,000 files that import SwiftUI.
Ratios you can quote
NavigationLink is in 2.4 times the files of contextMenu.
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 19 searches
Each search names one SwiftUI view or modifier, matched as a word in Swift files.
Ask the code search
One request per search, with at least seven seconds between requests.
Repeat an incomplete answer
A result marked incomplete by the service was requested again, at most three times.
Keep the count
Each count goes into the CSV next to its search, and no code is kept.
Which views a request list should use
A request list built on LazyVStack, in 93,056 files, or LazyVGrid, in 108,800, matches the usual ways to scroll. NavigationLink is in 223,488 files and contextMenu in 94,848, so a row that opens a detail and offers a menu uses well known parts.
Search and refresh are common too, with searchable in 62,784 files and refreshable in 52,608, which are the two a long request list needs most. Animation is nearly everywhere, with withAnimation in 308,736 files and GeometryReader in 203,008.
What these numbers leave out
- These are files and not apps, and not how often a view appears in a file.
- The search rounds large counts, so words within 10 percent of each other should be read as level.
- A file that mentions a word may only hold a sample, and the search ignores case.
- List, ForEach, Toggle and Picker are left out, as are names such as progressView that UIKit outlets share.
- A file can use more than one word, and a copied sample counts each time.
- The search leaves out most forks. No code was read.
What people ask about SwiftUI usage
Which SwiftUI word is in the most Swift files?
withAnimation, in 308,736 files, ahead of NavigationLink at 223,488.
Do apps use LazyVStack or LazyVGrid more?
LazyVGrid, in 108,800 files against 93,056, which is 1.2 times.
How common is NavigationLink?
It is in 223,488 files, 2.4 times contextMenu.
How common is GeometryReader?
It is in 203,008 files, 63.6 per 1,000 of the files that import SwiftUI.
How many files use swipeActions?
It is in 32,768 files.
Which word is in the fewest files?
PhaseAnimator, in 1,868 files, the fewest of the 19.
How many files use ViewThatFits?
ViewThatFits is in 21,056 files, 6.6 per 1,000 of the files that import SwiftUI.
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.
Why are List and ForEach missing?
Names that are also ordinary words would mix in other code, so they were left out.
May a site quote these figures?
Yes. Quote any figure with a link to this page, and give 1 November 2026 as the day the files were counted.
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.
NavigationStack, Observable and Swift Testing in GitHub
56 SwiftUI and Swift APIs counted in public files.
Widgets, Live Activities and App Intents in Swift files
22 words counted in public Swift files.
VoiceOver, Dynamic Type and dark mode counted in Swift apps
29 accessibility, dark mode and haptics words counted.
Apple platform checks counted in public Swift files
23 platform, visionOS, watchOS, CarPlay and health words counted.
How Swift apps ask for feedback and reviews, counted
32 prompts, links and screens counted.
SwiftData, Core Data and CloudKit counted in Swift files
22 storage and sync words counted in public Swift files.
ViewModel, Coordinator and Reducer counted in Swift files
Nine architecture words, with ViewModel in 903,168 files.
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.