Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sersoft-gmbh/apple-device-information
Contains a collection of device identifiers of apple devices
https://github.com/sersoft-gmbh/apple-device-information
apple swift
Last synced: about 1 month ago
JSON representation
Contains a collection of device identifiers of apple devices
- Host: GitHub
- URL: https://github.com/sersoft-gmbh/apple-device-information
- Owner: sersoft-gmbh
- License: apache-2.0
- Created: 2020-12-23T15:44:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T05:43:40.000Z (4 months ago)
- Last Synced: 2024-11-30T18:17:27.631Z (about 1 month ago)
- Topics: apple, swift
- Language: Swift
- Homepage: https://sersoft-gmbh.github.io/apple-device-information/
- Size: 1.23 MB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Apple Device Information
[![GitHub release](https://img.shields.io/github/release/sersoft-gmbh/apple-device-information.svg?style=flat)](https://github.com/sersoft-gmbh/apple-device-information/releases/latest)
![Tests](https://github.com/sersoft-gmbh/apple-device-information/workflows/Tests/badge.svg)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/929f794d2d28496a8195bf50def99d7e)](https://www.codacy.com/gh/sersoft-gmbh/apple-device-information/dashboard?utm_source=github.com&utm_medium=referral&utm_content=sersoft-gmbh/apple-device-information&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/sersoft-gmbh/apple-device-information/branch/main/graph/badge.svg?token=CI3ZFQGY7C)](https://codecov.io/gh/sersoft-gmbh/apple-device-information)
[![Docs](https://img.shields.io/badge/-documentation-informational)](https://sersoft-gmbh.github.io/apple-device-information)A database of device information which includes a mapping of device model identifiers to names.
## Installation
Add the following dependency to your `Package.swift`:
```swift
.package(url: "https://github.com/sersoft-gmbh/apple-device-information.git", from: "1.0.0"),
```## Usage
### `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.## Documentation
The API is documented using header doc. If you prefer to view the documentation as a webpage, there is an [online version](https://sersoft-gmbh.github.io/apple-device-information) available for you.
## Contributing
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.## License
See [LICENSE](./LICENSE) file.