An open API service indexing awesome lists of open source software.

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

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)