# Device

> Detect the current Apple device model and screen size in Swift

Source: https://talira.ai/catalog/device-pzpm3fxd
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)
- Platforms: ios, macos[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Lucas Ortis](https://talira.ai/orgs/lucas-ortis.md)

Device is a lightweight Swift library that tells an app which device it's running on: the iPhone, iPad or Mac model, its screen size, its device type, whether it has a Dynamic Island or a Retina display, and, when asked, which hardware a simulator is emulating.

## Links

- GitHub: https://github.com/Ekhoo/Device

## Problems it solves

- find out which iPhone model my Swift app is running on
- adjust my iOS layout for small or large screen sizes
- check whether the device has a Dynamic Island

## Features

- iPhone, iPad and Mac model detection
- screen size detection with comparisons
- Dynamic Island and Retina checks
- simulated hardware detection in the simulator
- no data collection, so no privacy manifest needed

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.63, adoption 0.65, momentum 0.35, community 0.64, backing 0.30, extensibility 0.00.

- last commit 19 days ago
- 5 commits in the last 90 days
- latest release 3.9.0 18 days ago
- 1.7k GitHub stars
- 39 contributors
- backed by Lucas Ortis

## Alternatives

- [DeviceKit](https://talira.ai/catalog/devicekit-hfq4sywm.md): Value-type replacement for UIDevice: device model, battery, screen and sensors 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/Ekhoo/Device/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/Ekhoo/Device/blob/master/LICENSE (checked 29 Nov 2026)
