Ian Keen: First of all thanks for writing wonderful article.
ansu jain
11

I’m glad you liked it!

As much as possible I try to make view models as ‘view agnostic’ as possible, but you need to be pragmatic about this also.

In terms of `CellRepresentable`, its more of a _bridge_ between the view model and the cell. By introducing some minor UI details that are actually specific to this view model/cell combo anyway we are able to fully decouple the cells from the view controller and allow the view controller to scale without needing to touch it.

I should also note that all of the boilerplate such as registering and dequeueing can be abstracted into default implementations further reducing the UI code in those view models.

One clap, two clap, three clap, forty?

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