SyntaxFix
Write A Post
Hire A Developer
Questions
Alternatively, you can check out 'DeviceKit' pod. Once installed, all you need to do to check the device is:
import DeviceKit let device = Device() if device == .iPhoneX { // place your code here }