Storyboards - Pros & Cons

of 36/36
Storyboards Pr os & Cons
  • date post

    13-Apr-2017
  • Category

    Technology

  • view

    241
  • download

    0

Embed Size (px)

Transcript of Storyboards - Pros & Cons

  • StoryboardsPros & Cons

  • Where I started

  • You'll want to remove Interface Builder from the

    project to see how all objects are created.

    1Jonathan Zdziarski

  • iOS 5 - Storyboards

  • Apple can't be wrong.1

    Dominik Hauser, 2012

  • So I used it

    ...

  • So I used it wrong

    https://github.com/dasdom/happy

  • Fast forward - 2016Today in my job I'm working on a project with 280+

    Storyboards. Which is also wrong.

  • Fast forward - 2016Today in my job I'm working on a project with 280+

    Storyboards. But we are working on it.

  • Pros & Cons

  • Pros

  • Pros - What You See Is (Kind Of) What

    You Get

  • Pros - Preview

  • Pros - Simulate context (left to

    right, longer text)

  • Pros - Less code, (hopefully) less bugs

  • Pros - See navigation flow

  • Pros - (Some) help in fixing constraints

    errors

  • Pros - Prototyping

  • Cons

  • Cons - Context shift

  • Cons - Conflicts

  • Cons - No git diff

  • Cons - Options all over the place

  • Cons - Constraints harder to glance

  • Cons - Controller based (no view reuse)

  • Cons - Performance

  • Cons - String based

  • Cons - Only ok with MVCMVP, MVVM, VIPER

  • Cons - Some UI elements missing

  • Cons - There is more4 Problems with Xcode betas

    4 Hard to refactor

    4 Another tool with its own bugs

    4 Dependency injection difficult

    4 Cannot comment out for experiments

  • How to move

  • No automatic solution

  • Yet...

  • https://github.com/dasdom/Storyboard2CodeApp

  • Demo

  • Thank you!Dominik Hauser, @swiftpainless