# SDVersion

> Detect the Apple device model, screen size and OS version in Swift or Objective-C

Source: https://talira.ai/catalog/sdversion-cfkwm9w3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / device detection](https://talira.ai/categories/libraries/device-detection), [languages / swift](https://talira.ai/categories/languages/swift)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Sebastian Dobrincu](https://talira.ai/orgs/sebastian-dobrincu.md)

SDVersion is a lightweight Cocoa library for Swift and Objective-C that tells you which device your app is running on, its screen size and the OS version. It covers iOS, iPadOS, watchOS, tvOS and macOS, from the iPhone 4 to the iPhone 16, Apple Watch to Series 10 and Ultra 2, Apple TV to 4K (3rd generation) and Macs through Apple silicon M4, and can tell when the screen is in display zoom mode.

## Links

- GitHub: https://github.com/sebyddd/SDVersion

## Problems it solves

- find out which iPhone or iPad model my app is running on
- change my iOS layout by screen size without hard-coding device dimensions
- check the OS version and device in an Objective-C or Swift app

## Features

- device model detection for iOS, iPadOS, watchOS, tvOS and macOS
- screen size detection
- display zoom mode check
- OS version comparisons
- Swift and Objective-C APIs, one library per platform

## Trust

Overall: 0.35 out of 1.
Signals: maintenance 0.27, adoption 0.62, momentum 0.30, community 0.52, backing 0.30, extensibility 0.00.

- latest release 5.0.0 11 months ago
- 1.3k GitHub stars
- 19 contributors
- backed by Sebastian Dobrincu

Warnings:

- last commit 11 months ago

## Alternatives

- [Device](https://talira.ai/catalog/device-pzpm3fxd.md): Detect the current Apple device model and screen size in Swift
- [DeviceKit](https://talira.ai/catalog/devicekit-hfq4sywm.md): Value-type replacement for UIDevice: device model, battery, screen and sensors in Swift

## Sources

[^1]: https://github.com/sebyddd/SDVersion/blob/master/README.md (checked 29 Nov 2026)
[^2]: https://github.com/sebyddd/SDVersion/blob/master/LICENSE (checked 29 Nov 2026)
[^3]: https://github.com/sebyddd/SDVersion/blob/master/SDVersion.podspec (checked 29 Nov 2026)
