Enum to Solution Complex UITableView

A common problem in developing iOS structures as UITableViewController and UICollectionViewControllers with list of different items. The most common solution is to create a protocol and all objects implement this protocol. Simple and functional.

I propose a solution using enums for my models do not have to implement a protocol that is related to an interface problem. Below the idea Enums with associated value.

References and Thanks

This idea comes from two sources, the first is that blog: http://www.mokacoding.com/blog/swift-either/

Seriously accompany him. their content is always very good.

One thing I have to confess that after I began to see the videos of Chris Eidhof and Florian Kugler in https://talk.objc.io site and seriously am every day more interested in using Generics and Enums.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.