Daniel Tartaglia
1 min readFeb 4, 2019

--

A system I’ve been using for a while now keeps in mind that inits are functions.

Rather than having massive tuples for the inputs and outputs. I have a struct for each (without the ViewModel boilerplate) and an init on the output that takes the input as an argument. QED. I grant though that this system doesn’t produce the handy warning if you forget to bind to an output.

See more of this idea at: https://github.com/danielt1263/RxEarthquake

--

--

Daniel Tartaglia
Daniel Tartaglia

Written by Daniel Tartaglia

I started programming as a hobby in the late ’70s and professionally in the late ’90s. I’ve been writing iOS apps since 2010 and using RxSwift since 2015.

Responses (1)