I'm working on an app where the main target audience are iPad users. IPad should only support landscape mode.
Secondary, I do not want to leave iPhone users out, so I would also like to support iPhones in portrait modes.
First screen of the app is a CollectionView, with two sections. I got that up and running with diffable datasource and compositional layout.
However, I am having a hard time to get it to look good on both supported devices / orientations. I think I need to do some device specifc things.
More so, the app will have a master-detail (SplitViewController) screen, which behaves differently on iPhone and iPad. Whole UI will be done programmatically using UIKit!
I wonder what the best approach would be. I could check for screensizes and have the layout change based upon those conditions, but that seems rather messy? Or would it be best to use a coordinator pattern and present different versions of the screens, depending on device.
I have very limited experience with coordinator pattern, did 2 of Paul's example projects, but this might be the route worth taking ...
Opinions?