1

I want to have a section in my app that shows the device type so I can make it noticeable to show that the device is supported. How do I get this? I tried

UIDevice.currentDevice().

and there was no platform type.

Amit Kalra
  • 4,085
  • 6
  • 28
  • 44

2 Answers2

2

Why cant you use:

UIDevice.current.systemName

That worked for me.

U13-Forward
  • 69,221
  • 14
  • 89
  • 114
0

You should check this Question here.

I didn't get why you want to show the user if the device is supported. The user shoudn't be able to download your app if the device is not compatible, and you can limit what device can download your app by doing this.

This link can also help you decide what UIRequiredDeviceCapabilities key you should use

Community
  • 1
  • 1
Lucas Farah
  • 1,022
  • 10
  • 24