Skip to content
GuidesChecked 20 November 2026

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.

Swift files, the ten most common words
WordFiles
withAnimation308,736
NavigationLink223,488
GeometryReader203,008
LazyVGrid108,800
contextMenu94,848
LazyVStack93,056
searchable62,784
confirmationDialog56,320
refreshable52,608
fullScreenCover47,424

Lists and scrolling

LazyVGrid is in 1.2 times the files of LazyVStack.

Swift files by lists and scrolling word
Lists and scrolling wordFiles
LazyVGrid108,800
LazyVStack93,056
ScrollViewReader42,304
LazyHStack11,312
containerRelativeFrame5,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.

Swift files by layout and animation word
Layout and animation wordFiles
withAnimation308,736
GeometryReader203,008
PreferenceKey33,344
ViewThatFits21,056
matchedGeometryEffect12,576
AnyLayout5,720
PhaseAnimator1,868

Per 1,000 files

NavigationLink is in 70.0 files per 1,000 that import SwiftUI, and GeometryReader in 63.6.

withAnimation is in 96.8 files per 1,000 that import SwiftUI.

LazyVGrid is in 34.1 per 1,000 and contextMenu in 29.7.

Swift files per 1,000 that import SwiftUI
WordPer 1,000
withAnimation96.8
NavigationLink70.0
GeometryReader63.6
LazyVGrid34.1
contextMenu29.7
LazyVStack29.2
searchable19.7
confirmationDialog17.7
refreshable16.5
fullScreenCover14.9

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.

Swift files, the top, median and fewest of each group
GroupTopMedianFewest
Lists108,80042,3045,976
Navigation223,48856,32032,768
Layout308,73621,0561,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.

Times one word is in more files than the next
Word over wordTimes
LazyVGrid over LazyVStack1.2
LazyVStack over LazyHStack8.2
NavigationLink over contextMenu2.4
contextMenu over swipeActions2.9
withAnimation over GeometryReader1.5
GeometryReader over ViewThatFits9.6
ViewThatFits over AnyLayout3.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.

Swift files per 1,000 that import SwiftUI
WordPer 1,000
ScrollViewReader13.3
PreferenceKey10.5
swipeActions10.3
ViewThatFits6.6
matchedGeometryEffect3.9
LazyHStack3.5
containerRelativeFrame1.9
AnyLayout1.8
PhaseAnimator0.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.

Swift files, the five least common words
Five least common wordsFiles
matchedGeometryEffect12,576
LazyHStack11,312
containerRelativeFrame5,976
AnyLayout5,720
PhaseAnimator1,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.

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.