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.
| Import | Files |
|---|---|
| UniformTypeIdentifiers | 107,008 |
| CoreLocation | 91,392 |
| CryptoKit | 85,760 |
| Photos | 69,760 |
| Security | 50,944 |
| SpriteKit | 46,144 |
| CoreImage | 42,496 |
| Metal | 39,104 |
| PhotosUI | 36,992 |
| Speech | 22,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.
| Sensor import | Files |
|---|---|
| CoreLocation | 91,392 |
| CoreBluetooth | 20,480 |
| CoreMotion | 9,680 |
| CoreHaptics | 3,364 |
| CoreNFC | 1,864 |
| NearbyInteraction | 518 |
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.
| Document import | Files |
|---|---|
| UniformTypeIdentifiers | 107,008 |
| Photos | 69,760 |
| PhotosUI | 36,992 |
| PDFKit | 18,816 |
| QuickLook | 6,448 |
| VisionKit | 3,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.
| People import | Files |
|---|---|
| SafariServices | 18,336 |
| EventKit | 13,536 |
| Contacts | 9,408 |
| MessageUI | 7,680 |
| LinkPresentation | 1,708 |
| Messages | 1,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.
| Audio import | Files |
|---|---|
| Speech | 22,720 |
| MediaPlayer | 10,656 |
| NaturalLanguage | 6,600 |
| MusicKit | 2,976 |
| SoundAnalysis | 510 |
| ShazamKit | 260 |
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.
| Security import | Files |
|---|---|
| CryptoKit | 85,760 |
| Security | 50,944 |
| LocalAuthentication | 14,688 |
| WatchConnectivity | 10,000 |
| BackgroundTasks | 5,464 |
| CallKit | 2,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.
| Graphics import | Files |
|---|---|
| SpriteKit | 46,144 |
| CoreImage | 42,496 |
| Metal | 39,104 |
| SceneKit | 19,680 |
| Accelerate | 17,888 |
| GameKit | 3,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.
| Group | Most | Fewest |
|---|---|---|
| Sensors | 91,392 | 518 |
| Documents | 107,008 | 3,720 |
| People | 18,336 | 1,492 |
| Media | 22,720 | 260 |
| Security | 85,760 | 2,236 |
| Graphics | 46,144 | 3,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.
More Swift code, counted
More counts for Swift developers.
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.