/Get-iOS-Model

Get iOS model using the hw.machine string

Primary LanguageC#MIT LicenseMIT

GetiOSModel Logo

Get-iOS-Model

Get the iOS model using the hw.machine string

Package
NuGet Badge GetiOSModel

Will keep repository updated as new devices become available.

Updates:
20211001 - Added new iPhone 13 models and updated 2021 iPad models
20210529 - Added new iPad models: iPad Pro (11-inch) (3rd generation) and iPad Pro (12.9-inch) (5th generation), corrected/added missing from iPad11,6 to iPad13,2's chip name.
20201212 - Added latest iPad and iPhone models
20200404 - Added iPhone SE (2nd generation)
20200327 - Added new iPad models iPad Pro 11-inch (2nd generation) and iPad Pro 12.9-inch (4th generation)
20190919 - Added hardware strings and chip types for new iPhone 11 models and iPad (7th generation) models
20190905 - Added Apple Chip Type property
20190601 - Added iPod touch 7th generation
20190327 - Added 2019 iPad models: iPad mini 5 and iPad Air 3
20181107 - iPad Pro 11-inch whitespace character fix thanks to @adamzucchi
20181106 - Added new iPad models: iPad Pro 12.9-inch (3rd generation) and iPad Pro 11-inch
20180921 - Added new iPhone models: iPhone XR, iPhone Xs and iPhone Xs Max
20180330 - Added Apple Tech specs link for iPad 6th generation
20180328 - Added new iPad 6th generation (2018 9.7-inch model)
20170929 - Model info now returned on simulators & updated Nuget to v1.3.
20170919 - Added iPhone 8, 8 Plus and X. Also updating NuGet to v1.2.
20170914 - NuGet updated to v1.1
20170706 - Adding NuGet
20170627 - Added iPad Pro (12.9-inch 2nd generation) and iPad Pro (10.5-inch)
20170321 - Added new iPad 5th generation
20161026 - corrected/added missing iPad6,4
20160912 - added iPhone 7 and 7 Plus
20160330 - added iPad Pro (9.7-inch) and iPhone SE
20160119 - added iPad Pro
20150928 - added iPhone 6s & iPhone 6s Plus
20150715 - added iPod 6th Generation
20141020 - added iPad Air 2 & iPad mini 3
20140917 - added iPhone 6 and 6 Plus
20140108 - added iPad Mini Retina and iPad Air


Install

NuGet Gallery

Install-Package dannycabrera.GetiOSModel

Sample

Console.WriteLine(Xamarin.iOS.DeviceHardware.Version);

Result: "iPhone5,3"

Console.WriteLine(Xamarin.iOS.DeviceHardware.Model);

Result: "iPhone 5C GSM"

Console.WriteLine(Xamarin.iOS.DeviceHardware.ChipType);

Result: "A6"


Thanks to:

@sven-s, @manishkungwani, @jimbobbennett, @adamzucchi, @follesoe and @CoreNion for their pull requests.