Help With Adapting Game to iPhone X

Hi Everyone,


I started this game 2 years ago and have been on and off with it since. I am pretty close to completing it.


Originally, I created the game for both iPad and iPhone. With the release of the iPhone X, I have not been successful in adjusting my scene to run properly on each device. I was able to adjust resolutions so it displays properly on iPhones, including X, but now the iPad isn't displaying it properly.


I am a bit stuck at the moment on how to continue. Do I need to create a separate scene specifically for iPad, detect which devices, and load the correct scene?

This is the only solution I can think of.


Any input is much appreciated!


Thank you!

Replies

>Do I need to create a separate scene specifically for iPad, detect which devices, and load the correct scene?


Yes, compatible storyboards and scenes. But if you started with a Universal app, you should already be there, so I'm not sure why adding iPhone X support broke existing iPad support. Perhaps if you talked specifically about what changes you added to cater to X...what was that process?


Are you already using class sizes?


How are you testing to confirm results? Which version Xcode are you using?


You might want to create a new project using the Master/Detail splitview template to get a feel for things, just remember that today's tools are different from 2 years back, and there may be conflicts with legacy implementations along the way vs. an app that was created new, now.


References:

https://developer.apple.com/design/adaptivity/

https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/index.html

Still can't find anything on this. If anyone else has any ideas that would be great!

If you mean iPhone X support, start here:


https://developer.apple.com/iphone/