This framework is get device name from model number.
Standard UIDevice can only distinguish iPhone or iPad.
This framework is get device name from model number.
- File > Swift Packages > Add Package Dependency
- Add https://github.com/MasamiYamate/YMTGetDeviceName
- Select "Up to Next Major" with "5.7.0"
Add to Cartfile
github "MasamiYamate/YMTGetDeviceName" ~> 5.7.0
Execute the following command
carthage update --platform iOS --use-xcframeworks
This feature will be discontinued in the future. Use is not recommended.
Add to Podfile
pod 'YMTGetDeviceName'
import YMTGetDeviceName
print(YMTGetDeviceName.getDeviceName())
Supports iOS devices up to 2024/05/27 (JST)