2

I'm going to create a Universal iOS application using Swift. The functionality for the iPhone and iPad versions is 70% the same but some parts are different. The app will support all orientations.

What is the best approach for a universal architecture? Should I use separate storyboards and separate classes for iPhone/iPad with separate targets or use the same files?

Daniel Storm
  • 18,301
  • 9
  • 84
  • 152
danteCore
  • 21
  • 1
  • 5
  • 2
    Is the 30% change just resizing views or is there additional content being added to the iPad version? If there's not much content being changed just use the same Storyboards and Auto Layout. – Daniel Storm Dec 23 '15 at 20:04
  • Some additional content will be added for 30%. – danteCore Dec 23 '15 at 20:07
  • I'd recommend using auto layout and size classes to determine what views are shown at particular sizes and orientations – arc4randall Dec 23 '15 at 20:09

1 Answers1

0

Separate storyboards would be the better option if you are planning to have very different layouts between the iPhone and iPad storyboards.

Personally, I would try to use the same storyboard for both and utilize both size classes and auto-layout (theres a good tutorial on auto-layout here) to adjust the views as @RDSpinz suggested in his comment.

Community
  • 1
  • 1
MoralCode
  • 1,954
  • 1
  • 20
  • 42