CameraView
CameraView copied to clipboard
[BUG]After taking a photo in fullScreenCover, the second time you take a photo, the interface buttons are lost when focusing
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
Please describe the behavior you are expecting
Current Behavior
What is the current behavior?
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Code Sample
If you can, please include a code sample that we can use to debug the bug.
Screenshots
If applicable, add screenshots to help explain your problem.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
| Name | Version |
|---|---|
| SDK | e.g. 3.0.0 |
| Xcode | e.g. 14.0 |
| Operating System | e.g. iOS 18.0 |
| Device | e.g. iPhone 14 Pro |
Same issue for me with .sheet view modifier
@Yyilin001 Workarounded it by delaying MCamera view for 0.2 seconds after appear like
ZStack {
Color.black
if workaroundCameraVisible {
MCamera().
.<rest_methods_here>
}
}
.onAppear { DispatchQueue.main.asyncAfter(delay: 0.2) { workaroundCameraVisible = true } }
.onDisappear { workaroundCameraVisible = false }