Blog
@ScottSmithDev No problem!
https://gist.github.com/jefflewis/d34fcc30031b52330bad3cdc2201a4fc
I removed a lot of the decency client implementation not tied to getting the image data out for brevity.
I subscribe to the camera feed in a TCA action, but it could be done in a SwiftUI task as well. I set a state value for the current image and display that in the ui.
One critical piece here is the buffering policy of the async stream. It needs to only be the latest value or the stream gets bloated and causes performance issues.