realm / realm-loginkit

A generic interface for logging in to Realm Mobile Platform apps
Apache License 2.0
74 stars 21 forks source link

Mass Refactor of iOS Codebase #31

Closed TimOliver closed 7 years ago

TimOliver commented 7 years ago

I originally built the iOS version of this view controller on a rather tight deadline, so it ended up suffering from a bad case of 'Massive View Controller Syndrome'. This ultimately meant it started getting messy when I started trying to extend it for requirements from certain clients.

To nip the already accumulating technical dept in the bud, I spent a bit of time refactoring the view controller and breaking out the code into appropriate models.

I didn't change a lot of this code, but at the same time, I'm not sure if everything still works. Now that code is much more modularized, I'm going to write some unit tests for the more complex logic. I'm going to hold off from merging this until then.

Until then, all comments and criticism welcome. :D