lobe / iOS-bootstrap

Bootstrap your Lobe machine learning model with our iOS starter project.
https://lobe.ai
MIT License
99 stars 18 forks source link

Refactored MyViewController and ContentView into MVVM #14

Closed ellbosch closed 3 years ago

ellbosch commented 3 years ago

This PR proposes a refactor which improves the understandability and testability of the codebase by transitioning to an MVVM (model + view + view-model) framework, as recommended for SwiftUI. The result is increased decoupling between views and view controller.

Please note: the app hasn't completely shifted to MVVM. This PR represents an initial effort to get there.

Changes include:

Other improvements:

Tagging #17