I recently converted my project to be a be a universal app. Everything is positioned correctly on the iPhones and some of the iPad versions (it has the black bars on top and bottom, but that's not the issue here). On the iPad 2, the HUD node is shifted up by 125 points. I can't figure out why this is happening on the iPad 2, but not the iPad Air 2. Has anyone else had issues like this?
I've been trying to fix the issue by checking for the exact model of the device in code, but am running into some issues doing so. I've tried using UIDevice.current.model
(and other variants), but that just returns either "iPhone" or "iPad", and doesn't give any specifics. I've found some other post explaining how to do this another way, but haven't gotten it to work yet. Does anyone have another way to find the specific model of the device so I can adjust the node for that device? I'm using swift 3.0 and it seems the syntax has changed quite a bit from version to version as well.
Here's the link to what I've been trying to do (without luck so far): iOS: How to determine the current iPhone/device model in Swift?