Repository navigation
2026.0.0
The first release of SwiftDeviceKit: a modern Swift device library based on DeviceKit, built for iOS and iPadOS 18+.
Modules
- SwiftDeviceKitCore — device identification, simulator and preview detection, hardware capabilities and screen specifications.
- SwiftDeviceKitSystem — Core plus battery, thermal state, storage, orientation, brightness and system information.
Both modules share one package version and have no external dependencies.
Highlights
- Swift tools 6.4 and Swift 6 language mode, with Sendable value types and MainActor isolation for UIKit-backed APIs.
- A Swift-native catalog of 66 iPhone and iPad models with 105 hardware identifiers, organized as one file per device.
- iPhone 18 Pro identification and an updated README example.
- iPhone Duo identification and separate specifications for its outer and inner screens.
- Model camera metadata for simulator wrappers and detection of unknown simulator models.
- Focused guides for migration, screens, adding devices and testing.
Installation
Add https://github.com/Anywhere-Music-Player/SwiftDeviceKit in Xcode, select version 2026.0.0, and choose SwiftDeviceKitCore or SwiftDeviceKitSystem.
Validation
The release commit was built in Release configuration for iOS. All 57 package tests passed on an iPhone 18 Pro simulator running iOS 27.2. The optional comparison with DeviceKit passed both tests, performing 13,156 comparisons with zero unexpected differences.
These results cover the catalog and the tested simulator behavior; they do not establish execution on the iOS 18 minimum runtime or physical-device behavior.