at the moment I have a SwiftUI app that works great only on iPhone.
I would like to extend the layout compatibility to the iPad and the Mac and I'm looking for a best practice to present conditionally the views depending of the platform.
Everything I have found is the "multi target strategy", so one target for each platform with his files.
But I would like to keep just one target so the release process would be easier, and I also would like to avoid all the time the if statements to check on witch platform the user is running the app.
Any best practice or any suggestion?