This question already has an answer here:
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
.
Rashwan L
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
.
来源:https://stackoverflow.com/questions/46234177/what-are-the-model-names-for-iphone-8-and-iphone-x