masamiyamate/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.0Execute the following command
carthage update --platform iOS --use-xcframeworksHow to use
Import
import YMTGetDeviceNameGet device name
print(YMTGetDeviceName.getDeviceName())Q&A
What is the range of supported devices?
Supports iOS devices up to 2024/09/18 (JST)
Package Metadata
Repository: masamiyamate/ymtgetdevicename
Default branch: main
README: README.md