Swiftpack.co - sersoft-gmbh/apple-device-information as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by sersoft-gmbh.
sersoft-gmbh/apple-device-information 1.4.0
Contains a collection of device identifiers of apple devices
⭐️ 3
🕓 36 weeks ago
.package(url: "https://github.com/sersoft-gmbh/apple-device-information.git", from: "1.4.0")

Apple Device Information

GitHub release Tests Codacy Badge codecov Docs

A database of device information which includes a mapping of device model identifiers to names.


Add the following dependency to your Package.swift:

.package(url: "https://github.com/sersoft-gmbh/apple-device-information.git", from: "1.0.0"),



Simply access DeviceInfo.current and you have access to all information this package currently offers. For a more detailed documentation of the fields, please have a look at the header docs.


The API is documented using header doc. If you prefer to view the documentation as a webpage, there is an online version available for you.


If you find a bug / like to see a new feature in this package there are a few ways of helping out:

  • If you can fix the bug / implement the feature yourself please do and open a PR.
  • If you know how to code (which you probably do), please add a (failing) test and open a PR. We'll try to get your test green ASAP.
  • If you can do neither, then open an issue. While this might be the easiest way, it will likely take the longest for the bug to be fixed / feature to be implemented.


See LICENSE file.


Stars: 3
Last commit: 2 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

37 weeks ago

What's Changed

  • Add support for Swift 5.6
  • Drop support for Swift pre 5.5
  • Add new device identifiers
  • Add new OS names

Full Changelog: https://github.com/sersoft-gmbh/apple-device-information/compare/1.3.0...1.4.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics