rorodriguez116 / Camera-SwiftUI

A lightweight camera library for quick integration with SwiftUI - iOS/iPadOS only

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: Couldn't add video device input to the session.

lewistham9x opened this issue · comments

When following this guide to recreate a Snapchat-like navigation for my app, I stumbled upon "Couldn't add video device input to the session." when using the following code:

TabView(){ CameraPreview(session: model.session) .onAppear { model.configure() } .tabViewStyle(PageTabViewStyle())

I believe this has to do with model.configure() occuring on .onAppear, which seems to have a problem with PageTabViewStyle()

Hi @lewistham9x this issue has been fixed please see this PR