Exploring Stateless UIs in Swift

by Sam Kirchmeier and Adam May | at MinneBar 11

Taking inspiration from architectural patterns like Flux and Redux, this session is an exploration of one-way data flow principles in Swift.

It's hard to resist the influence of Apple's Cocoa MVC architecture on our apps. We've all seen or written view controllers with thousands of lines of code that buckle under the weight of their responsibilities. They're difficult to test, modify, and maintain.

By thinking differently about how we handle application state over time, we've reduced complexity and improved extensibility of production code. And you don't need to buy into a specific architecture–you can benefit from using one-way data flow principles in your apps right now.

In this session, we'll:

  • Define a simple, platform-independent architecture for stateless UIs.
  • Consider how Swift lends itself to this architecture via protocols and immutability.
  • Show the benefits of this architecture as applied to collection views.
  • Discuss challenges and future work.
Intermediate

Sam Kirchmeier

VP of Engineering at Livefront

Adam May

I'm a software developer at Livefront who enjoys learning and exploring mobile technology.