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"),
DeviceInfo
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:
See LICENSE file.
link |
Stars: 4 |
Last commit: 1 week ago |
Full Changelog: https://github.com/sersoft-gmbh/apple-device-information/compare/1.5.0...1.6.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics