CameraView icon indicating copy to clipboard operation
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

Open Yyilin001 opened this issue 3 months ago • 2 comments

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.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. 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

Yyilin001 avatar Oct 07 '25 11:10 Yyilin001

Image

Yyilin001 avatar Oct 07 '25 11:10 Yyilin001

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 }

Alkenso avatar Oct 24 '25 22:10 Alkenso