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 AV capture logic #21

Closed ellbosch closed 3 years ago

ellbosch commented 3 years ago

This PR does 2 things:

Because: It's very difficult to interface AV capture logic from the SwiftUI layer if handled in UIKit (aka, our view controller). The workaround would involve very complicated delegation. Now, our view model manages AV capture logic—it's simpler to understand, easier to control, and easier to test.

This commit:

UI

Camera View

Image Preview

What's Next

Adding tests for Play view model.

Tagging #17