Slide 1

Slide 1 text

Swift, do you even Flux? Afonso Graça @AfonsoGraca

Slide 2

Slide 2 text

This is not about which architecture is the best.

Slide 3

Slide 3 text

MVC MVVM MVP Ŏ

Slide 4

Slide 4 text

Too broad?

Slide 5

Slide 5 text

Present day Apps › UI-Driven › Connected › Persistent 

Slide 6

Slide 6 text

Why is UI Code such a pain? Complex

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

What is Flux really? Action Dispatcher Store View

Slide 10

Slide 10 text

But how can I use it in iOS? › Dispatcher › State › Actions › Stores › View Controllers

Slide 11

Slide 11 text

What about Redux? Reducer #1 Reducer #2 Store View Action

Slide 12

Slide 12 text

Benefits › Clear State Propagation › Incremental adoption › Testability & Debuggability › Predictability

Slide 13

Slide 13 text

Drawbacks › Lack Reactive UIKit › Multiple Store Dependency

Slide 14

Slide 14 text

? Alternatives › Elm › React Native

Slide 15

Slide 15 text

It’s a wrap! › Strive for simplicity › Increase familiarity › Be a breaker of conventions

Slide 16

Slide 16 text

Afonso Graça ² afonsograca @AfonsoGraca Thank You!