0

I want to change constraints programmatically depending on whether the app is run on the old iPad Pro with home button, or the new one with the home bar (swiping indicator) (3rd generation iPad Pro). How can I make that distinction in Swift since they both have the same screen size - 12.9 inches. Is there some built-in flag?

I found the answer here by using the extension UIDevice: https://stackoverflow.com/a/26962452/6217970

Sloba
  • 66
  • 4
  • Just use the safeArea and you don't need to do any checking. – rmaddy Jun 25 '19 at 21:28
  • I want my view to cover the safe area and make the home bar (swiping indicator) look like its "floating", thus getting rid of the white line across the whole screen side. But if I do that then the view will be cut off for 20 pts on the iPads without the bar. – Sloba Jun 25 '19 at 21:45

0 Answers0