36
Storyboards Pr os & Cons

Storyboards - Pros & Cons

  • Upload
    dasdom

  • View
    253

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Storyboards - Pros & Cons

StoryboardsPros & Cons

Page 2: Storyboards - Pros & Cons

Where I started

Page 3: Storyboards - Pros & Cons

You'll want to remove Interface Builder from the

project to see how all objects are created.

1Jonathan Zdziarski

Page 4: Storyboards - Pros & Cons

iOS 5 - Storyboards

Page 5: Storyboards - Pros & Cons

Apple can't be wrong.1

Dominik Hauser, 2012

Page 6: Storyboards - Pros & Cons

So I used it

...

Page 7: Storyboards - Pros & Cons

So I used it wrong

https://github.com/dasdom/happy

Page 8: Storyboards - Pros & Cons

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

Storyboards. Which is also wrong.

Page 9: Storyboards - Pros & Cons

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

Storyboards. But we are working on it.

Page 10: Storyboards - Pros & Cons

Pros & Cons

Page 11: Storyboards - Pros & Cons

Pros

Page 12: Storyboards - Pros & Cons

Pros - What You See Is (Kind Of) What

You Get

Page 13: Storyboards - Pros & Cons

Pros - Preview

Page 14: Storyboards - Pros & Cons

Pros - Simulate context (left to right, longer text)

Page 15: Storyboards - Pros & Cons

Pros - Less code, (hopefully) less bugs

Page 16: Storyboards - Pros & Cons

Pros - See navigation flow

Page 17: Storyboards - Pros & Cons

Pros - (Some) help in fixing constraints

errors

Page 18: Storyboards - Pros & Cons

Pros - Prototyping

Page 19: Storyboards - Pros & Cons

Cons

Page 20: Storyboards - Pros & Cons

Cons - Context shift

Page 21: Storyboards - Pros & Cons

Cons - Conflicts

Page 22: Storyboards - Pros & Cons

Cons - No git diff

Page 23: Storyboards - Pros & Cons

Cons - Options all over the place

Page 24: Storyboards - Pros & Cons

Cons - Constraints harder to glance

Page 25: Storyboards - Pros & Cons

Cons - Controller based (no view reuse)

Page 26: Storyboards - Pros & Cons

Cons - Performance

Page 27: Storyboards - Pros & Cons

Cons - String based

Page 28: Storyboards - Pros & Cons

Cons - Only ok with MVCMVP, MVVM, VIPER

Page 29: Storyboards - Pros & Cons

Cons - Some UI elements missing

Page 30: Storyboards - Pros & Cons

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

Page 31: Storyboards - Pros & Cons

How to move

Page 32: Storyboards - Pros & Cons

No automatic solution

Page 33: Storyboards - Pros & Cons

Yet...

Page 34: Storyboards - Pros & Cons

https://github.com/dasdom/Storyboard2CodeApp

Page 35: Storyboards - Pros & Cons

Demo

Page 36: Storyboards - Pros & Cons

Thank you!Dominik Hauser, @swiftpainless