Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Storyboards
Pros & Cons
Where I started
You'll want to
remove Interface
Builder from the
project to see how all
objects are created.
1
Jonathan 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 - 2016
Today in my job I'm working on a project with 280+
Storyboards. Which is also wrong.
Fast forward - 2016
Today 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 MVC
MVP, MVVM, VIPER
Cons - Some UI
elements missing
Cons - There is more
4 Problems with Xcode betas
4 Hard to refactor
4 Another tool with its own bugs
4 Dependency injectio...
How to move
No automatic solution
Yet...
https://github.com/dasdom/Storyboard2CodeApp
Demo
Thank you!
Dominik Hauser, @swiftpainless
Upcoming SlideShare
Loading in …5
×

Storyboards - Pros & Cons

1,869 views

Published on

A talk about the advantages and disadvantages of iOS storyboards.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Storyboards - Pros & Cons

  1. 1. Storyboards Pros & Cons
  2. 2. Where I started
  3. 3. You'll want to remove Interface Builder from the project to see how all objects are created. 1 Jonathan Zdziarski
  4. 4. iOS 5 - Storyboards
  5. 5. Apple can't be wrong. 1 Dominik Hauser, 2012
  6. 6. So I used it ...
  7. 7. So I used it wrong https://github.com/dasdom/happy
  8. 8. Fast forward - 2016 Today in my job I'm working on a project with 280+ Storyboards. Which is also wrong.
  9. 9. Fast forward - 2016 Today in my job I'm working on a project with 280+ Storyboards. But we are working on it.
  10. 10. Pros & Cons
  11. 11. Pros
  12. 12. Pros - What You See Is (Kind Of) What You Get
  13. 13. Pros - Preview
  14. 14. Pros - Simulate context (left to right, longer text)
  15. 15. Pros - Less code, (hopefully) less bugs
  16. 16. Pros - See navigation flow
  17. 17. Pros - (Some) help in fixing constraints errors
  18. 18. Pros - Prototyping
  19. 19. Cons
  20. 20. Cons - Context shift
  21. 21. Cons - Conflicts
  22. 22. Cons - No git diff
  23. 23. Cons - Options all over the place
  24. 24. Cons - Constraints harder to glance
  25. 25. Cons - Controller based (no view reuse)
  26. 26. Cons - Performance
  27. 27. Cons - String based
  28. 28. Cons - Only ok with MVC MVP, MVVM, VIPER
  29. 29. Cons - Some UI elements missing
  30. 30. Cons - There is more 4 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
  31. 31. How to move
  32. 32. No automatic solution
  33. 33. Yet...
  34. 34. https://github.com/dasdom/Storyboard2CodeApp
  35. 35. Demo
  36. 36. Thank you! Dominik Hauser, @swiftpainless

×