Log in  |  Forgot Password?

Exploring Stateless UIs in Swift

by Sam Kirchmeier and Adam May

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

I'm a speaker, teacher, and software developer at Livefront. I build apps with a variety of technologies, and I specialize in making awesome software for iOS devices. When I'm not coding, you might find me dreaming about coding or out on the disc golf course. (Come on spring!)

Adam May

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