Skip to content
GuidesChecked 21 November 2026

Swift device framework imports, 36 counted

36 device framework imports counted in public Swift files on 1 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

Top ten

import UniformTypeIdentifiers is in 107,008 Swift files, 411.6 times import ShazamKit.

Five of the 36 imports are in more than 50,000 files, and 11 are in fewer than 5,000.

Swift files, the ten most imported
ImportFiles
UniformTypeIdentifiers107,008
CoreLocation91,392
CryptoKit85,760
Photos69,760
Security50,944
SpriteKit46,144
CoreImage42,496
Metal39,104
PhotosUI36,992
Speech22,720

Location and sensors

import CoreLocation is in 91,392 files, 4.5 times import CoreBluetooth.

import CoreLocation is in 9.4 times the files of import CoreMotion.

Swift files by sensor import
Sensor importFiles
CoreLocation91,392
CoreBluetooth20,480
CoreMotion9,680
CoreHaptics3,364
CoreNFC1,864
NearbyInteraction518

Photos and documents

import UniformTypeIdentifiers is in 1.5 times the files of import Photos.

import PhotosUI, the picker, is in 53.0 files for every 100 with import Photos.

Swift files by document import
Document importFiles
UniformTypeIdentifiers107,008
Photos69,760
PhotosUI36,992
PDFKit18,816
QuickLook6,448
VisionKit3,720

People and messages

import SafariServices is in 18,336 files, 1.4 times import EventKit.

import EventKit is in 1.4 times the files of import Contacts.

Swift files by people import
People importFiles
SafariServices18,336
EventKit13,536
Contacts9,408
MessageUI7,680
LinkPresentation1,708
Messages1,492

Media and speech

import Speech is in 22,720 files, 2.1 times import MediaPlayer.

import NaturalLanguage is in 2.2 times the files of import MusicKit.

Swift files by media import
Audio importFiles
Speech22,720
MediaPlayer10,656
NaturalLanguage6,600
MusicKit2,976
SoundAnalysis510
ShazamKit260

Security and background

import CryptoKit is in 85,760 files, 1.7 times import Security.

import Security, the older Keychain and certificate framework, is in 3.5 times the files of import LocalAuthentication.

Swift files by security import
Security importFiles
CryptoKit85,760
Security50,944
LocalAuthentication14,688
WatchConnectivity10,000
BackgroundTasks5,464
CallKit2,236

Graphics and games

import SpriteKit, import CoreImage and import Metal sit within 15 percent of each other.

import Metal is in 2.0 times the files of import SceneKit.

Swift files by graphics import
Graphics importFiles
SpriteKit46,144
CoreImage42,496
Metal39,104
SceneKit19,680
Accelerate17,888
GameKit3,712

By group

The media and speech imports spread 87.4 to 1, and the security imports 38.4 to 1.

The sensor imports spread 176.4 to 1, and the graphics imports only 12.4 to 1.

The document imports spread 28.8 to 1, and the people imports 12.3 to 1.

Swift files, the most and the fewest of each group
GroupMostFewest
Sensors91,392518
Documents107,0083,720
People18,3361,492
Media22,720260
Security85,7602,236
Graphics46,1443,712

What is in the file

A count for each import

Six imports in each of six groups, from sensors to graphics.

Words set against each other

Ratios inside each group, and a spread for each group.

Ratios you can quote

import CoreLocation is in 4.5 times the files of import CoreBluetooth.

No code and no names

The file holds counts only, with no repository and no developer.

How the files were counted

One search per import.

Write 36 searches

Each search names one import line, matched as an exact phrase in Swift files.

Ask the code search

Send each search to the code search on its own, with a pause of seven seconds or more between them.

Repeat incomplete results

A result the service marked incomplete was asked for again, three tries at most.

Keep the count

Store the import, its group, its count and its search as a CSV row, never code.

How to read these counts

Treat each figure as a measure of reach among public Swift files, not of quality or of how often a framework is called. A framework that few files import can still be central to the apps that need it, and a very common one can be a single line at the top of a utility file.

Use the ratios to compare families, such as sensors against graphics, and keep the count date of 1 November 2026 beside any figure you quote.

What a feedback screen needs from the device

A feedback screen needs little from the device, and the counts show which parts are common. SafariServices, in 18,336 files, opens a board in a sheet inside the app, and MessageUI, in 7,680 files, covers the in app mail composer, so a link is the more familiar choice.

Attaching a screenshot rests on the photo frameworks, with Photos in 69,760 files and PhotosUI in 36,992. The picker is code most developers have already written, which keeps a report form with an attachment within reach of a small app.

What these numbers leave out

  • These are files and not apps or users, and not how often a framework is used inside a file.
  • The service rounds big counts, so two imports within about 10 percent of each other are level.
  • Frameworks already counted on the Swift imports guide are left out here.
  • Four imports carry the number from the guide that counted them first, so a word has one number on the site.
  • An import can sit in a comment, so a count does not show that code calls the framework.
  • A sample copied into many places counts each time, forks are mostly left out, and no code was opened.

Swift framework import questions

Which system framework do Swift files import most among these 36?

UniformTypeIdentifiers, in 107,008 public files, then CoreLocation in 91,392.

How many Swift files import CoreLocation?

91,392 files, 4.5 times the 20,480 for CoreBluetooth.

How many files import CryptoKit?

85,760 files, 1.7 times the 50,944 for Security.

How many files import the photo picker?

import PhotosUI is in 36,992 files, 53.0 for every 100 with import Photos.

How many files import the in app web view?

import SafariServices is in 18,336 files.

How many files import Speech?

22,720 files, 2.1 times the 10,656 for MediaPlayer.

How many files import a game or graphics framework?

SpriteKit is in 46,144 files, CoreImage in 42,496 and Metal in 39,104.

Which import is the rarest?

import ShazamKit, in 260 files.

Does this count apps?

No. It counts files, and a copied sample counts each time.

May a site quote these figures?

Yes. Name this page and the count date, 1 November 2026, beside any figure you use.

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.