Search code examples
iosiphoneios11

What are the model names for IPhone 8 and iPhone X?


Can anyone who have access to iPhone 8 and iPhone X let me know the model names? It could be accessed by UIDevice.current.modelName.


Solution

  • The information as @Anbu mentioned are:

    • iPhone 8: iPhone10,1 and iPhone10,4
    • iPhone 8 Plus: iPhone10,2 and iPhone10,5
    • iPhone X: iPhone10,3 and iPhone10,6

    Remember if you want to use UIDevice.current.modelName you need to create your own extension since this is not a default value in UIDevice.current.