Slide 1

Slide 1 text

Foundation over features How investing in our own component framework has helped us build Norway’s largest mobile bank.

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Building a new mobile bank

Slide 4

Slide 4 text

For 4 months the app was completely blank Investing time to build a foundation

Slide 5

Slide 5 text

Theming Backend simulator Global model store Coordinators Deep linking Design system Skeleton views HTTP Client Repository Authentication library NSOperations abstractions Component framework

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

We needed a shared foundation

Slide 8

Slide 8 text

One big UICollectionView Account list component Table component

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

The missing piece: Layouts

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

Composable collection view layout

Slide 18

Slide 18 text

• Each component has its own layout • Custom collection view layout takes each component layout and converts it into one big UICollectionViewLayout. Composable collection view layout

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Benefits • Reusable components allows us to share functionality throughout the app • Ability to compose bigger screens out of smaller components • Declarative layout system • Data-driven UIs are easy to unit-test • Animations are handled automatically • Allows us to transition to SwiftUI

Slide 23

Slide 23 text

Transitioning to SwiftUI

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Automatically dequeue cells based on layouts

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Take-aways

Slide 32

Slide 32 text

• Investing time in building a good foundation can really pay off in the long term • Owning the abstraction gives you a lot of freedom • Use frameworks for the hard problems

Slide 33

Slide 33 text

No content