# DeviceKit

> Value-type replacement for UIDevice: device model, battery, screen and sensors in Swift

Source: https://talira.ai/catalog/devicekit-hfq4sywm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / system information](https://talira.ai/categories/libraries/system-information), [languages / swift](https://talira.ai/categories/languages/swift)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [DeviceKit](https://talira.ai/orgs/devicekit.md)

DeviceKit is a Swift library that replaces UIDevice with an equatable value type. It identifies the exact device model and its family and group, detects the simulator, and reads battery state and level, screen size, ratio and pixel density, Low Power Mode, Guided Access, screen brightness, Display Zoom, available sensors such as Touch ID and Face ID, free disk space and Apple Pencil support. It supports iOS, tvOS and watchOS and installs with CocoaPods, Swift Package Manager or Carthage.

## Links

- GitHub: https://github.com/devicekit/DeviceKit

## Problems it solves

- find out which iPhone model my app is running on
- check whether my iOS app is running in the simulator
- read the battery level and Low Power Mode in Swift

## Features

- identifies the exact iPhone, iPad, Apple TV or Apple Watch model
- device family, group and simulator detection
- battery state, battery level and Low Power Mode
- screen size, ratio, PPI, brightness and Display Zoom
- detects Touch ID, Face ID and Apple Pencil support
- available disk space

## Limitations

- Needs iOS 11, tvOS 11 or watchOS 4 or newer; older OS versions need an older major release.[^1]

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.65, adoption 0.74, momentum 0.46, community 0.74, backing 0.30, extensibility 0.00.

- last commit 28 days ago
- 8 commits in the last 90 days
- latest release 5.10.0 28 days ago
- 4.7k GitHub stars
- 68 contributors
- has a company behind it

## Alternatives

- [Device](https://talira.ai/catalog/device-pzpm3fxd.md): Detect the current Apple device model and screen size in Swift
- [SDVersion](https://talira.ai/catalog/sdversion-cfkwm9w3.md): Detect the Apple device model, screen size and OS version in Swift or Objective-C

## Sources

[^1]: https://github.com/devicekit/DeviceKit/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/devicekit/DeviceKit/blob/master/LICENSE (checked 28 Nov 2026)
