SwiftttCamera icon indicating copy to clipboard operation
SwiftttCamera copied to clipboard

SwiftUI Support?

Open antranapp opened this issue 4 years ago • 6 comments

Thanks for this great update to FastttCamera.

One feature request: It would be great if SwiftttCamera also has first class SwiftUI support. That means that a SwiftUI View is provided so that it can be used directly in a SwiftUI app.

antranapp avatar Sep 05 '21 23:09 antranapp

That's a great suggestion! Not sure if I'd rewrite everything in SwiftUI, or if I'd simply write a wrapper around the existing stack. None of this is in my plans for the foreseeable future, but PRs are welcome! 🙌 Thanks for the suggestion!

rogerluan avatar Sep 06 '21 00:09 rogerluan

I don't think AVFoundation works directly in SwiftUI, so no need to rewrite everything in SwiftUI.

I'll take a look at this and will make a PR if I can come up with something

antranapp avatar Sep 07 '21 23:09 antranapp

any news about SwiftUI support?

SupaBasti avatar Dec 02 '21 16:12 SupaBasti

No news on my end. Not sure if @antranapp made any progress on that front, though 🙇

rogerluan avatar Dec 02 '21 22:12 rogerluan

I ended up writing my own simple SwiftUI wrapper for AVFoundation.

antranapp avatar Dec 04 '21 21:12 antranapp

Is that open source by any chance @antranapp ?

rogerluan avatar Dec 05 '21 04:12 rogerluan