Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]UI Controls disappear after app suspended #87

Open
SpiraMira opened this issue Feb 10, 2025 · 1 comment
Open

[BUG]UI Controls disappear after app suspended #87

SpiraMira opened this issue Feb 10, 2025 · 1 comment

Comments

@SpiraMira
Copy link

SpiraMira commented Feb 10, 2025

After I suspended the demo app on my phone, most UI controls/views disappear when resumed (except for the full screen preview).

To rule out the demo app, I replaced it with a simple contentView:

struct ContentView: View {
    @State private var shouldShowCamera: Bool = false

    var body: some View {
        ZStack { if shouldShowCamera {
            MCamera()
                .lockCameraInPortraitOrientation(AppDelegate.self)
                .setCameraOutputType(.photo)
                .setCloseMCameraAction(closeMCameraAction)
                .onImageCaptured(onImageCaptured)
                .onVideoCaptured(onVideoCaptured)
                .startSession()
        }}
        .frame(maxHeight: .infinity)
        .onAppear(perform: onAppear)
    }
}

etc...

The previous framework version handled this correctly.

version: 3.0.1
Xcode 16.2
IOS 18

@SpiraMira
Copy link
Author

possibly a duplicate of #81

@SpiraMira SpiraMira changed the title UI Controls disappear after app suspended [BUG]UI Controls disappear after app suspended Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant