devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.42k stars 428 forks source link

How to get model number with DeviceKit? #275

Open RomanPodymov opened 3 years ago

RomanPodymov commented 3 years ago

Hello. Thank you for DeviceKit. Could you tell me how to get the device's model number with DeviceKit? I mean the values like A2111, A2223.

Zandor300 commented 3 years ago

@RomanPodymov There currently is no way, using DeviceKit at least, to get the model numbers of the device. We identify devices using the firmware identifier (eg. iPhone13,3).

RomanPodymov commented 3 years ago

Hello @Zandor300 Thanks for the clarification. It will be nice to have this feature.

ptrkstr commented 2 years ago

Until it's added to DeviceKit, I created a package which does provide this information @Zandor300 https://github.com/ptrkstr/Devices It focuses more on providing all devices rather than the current device.