Paul Hudson - Separation of concerns: Refactoring view controllers live

Опубликовано: 27 Ноябрь 2018
на канале: Swift Heroes
5,109
119

We all know that massive view controllers lead to equally massive problems, but sometimes it’s not easy to know where to start when you want to make things better.

In this session I’ll present an example Swift app, walk through the many structural problems it has, then refactor it live on stage so you can see exactly how it’s done.

The end result will be a smarter, simpler architecture that is more testable, more scalable, and most importantly more maintainable.

There are a number of targets we’ll be investigating, such as:
Relocating view code to a sensible location
Spinning off delegates and data sources to new classes
Using coordinators to simplify navigation

All this will be done with live coding on stage, so you can follow along.