CameraView
CameraView copied to clipboard
[BUG] "Customizing MCamera Screens" docs is outdated
Prerequisites
- [x] I checked the documentation and found no answer
- [x] I checked to make sure that this issue has not already been filed
Expected Behavior
The Customizing MCamera Screens should have code that compiles
Current Behavior
As-is, the documentation fails with:
Cannot convert value of type 'CustomCameraScreen' to expected argument type 'CameraScreenBuilder' (aka '@MainActor @Sendable (CameraManager, Namespace.ID, @escaping () -> ()) -> any MCameraScreen')
Looks like setCameraScreen now takes an @escaping CameraScreenBuilder rather than a MCameraScreen