https://github.com/masamiyamate/ymtgetdevicename
Get device name from model number
https://github.com/masamiyamate/ymtgetdevicename
devicename ios ipad iphone modelname swift
Last synced: about 1 year ago
JSON representation
Get device name from model number
- Host: GitHub
- URL: https://github.com/masamiyamate/ymtgetdevicename
- Owner: MasamiYamate
- License: mit
- Created: 2018-09-19T04:07:08.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T15:41:36.000Z (about 1 year ago)
- Last Synced: 2025-05-02T13:49:27.410Z (about 1 year ago)
- Topics: devicename, ios, ipad, iphone, modelname, swift
- Language: Swift
- Homepage:
- Size: 374 KB
- Stars: 40
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YMTGetDeviceName
This framework is get device name from model number.
## Description
Standard UIDevice can only distinguish iPhone or iPad.
This framework is get device name from model number.
## Installation
### Use Swift Package Manager
- File > Swift Packages > Add Package Dependency
- Add https://github.com/MasamiYamate/YMTGetDeviceName
- Select "Up to Next Major" with "5.8.0"
### Use Carthage
Add to Cartfile
```
github "MasamiYamate/YMTGetDeviceName" ~> 5.8.0
```
Execute the following command
```
carthage update --platform iOS --use-xcframeworks
```
## How to use
### Import
```ViewController.swift
import YMTGetDeviceName
```
### Get device name
```ViewController.swift
print(YMTGetDeviceName.getDeviceName())
```
## Q&A
### What is the range of supported devices?
Supports iOS devices up to 2024/09/18 (JST)