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
.
The information as @Anbu mentioned are:
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
.