Mijick / CameraView

Camera made simple (SwiftUI)
MIT License
185 stars 16 forks source link

How to configure to return to camera view after accepting photo in previewer #34

Closed splons closed 1 month ago

splons commented 1 month ago

I have an application where the user will likely want to take multiple photos in a session. I would like to configure so that when they accept a photo in the preview it takes them back to the live photo screen to take another. Thank you.

FulcrumOne commented 1 month ago

Hey @splons,

Ahh, apologies, seems I forgot to implement this obvious use case. I'm adding this request to the backlog.

Best regards, Tomasz

FulcrumOne commented 1 month ago

hey @splons,

The feature was implemented in the version 2.1.0. Could you check whether it works as expected?

Here's an example of how it works:

MCameraController(manager: manager)
    .afterMediaCaptured { $0
        .returnToCameraView(true)
        .closeCameraController(false)
        .custom { print("Something") }
    }
splons commented 1 month ago

Hello, thank you for the timely work on this. I am traveling until Tuesday. I look forward to trying it asap I get back home. SteveOn Jul 27, 2024, at 12:22, Tomasz K. @.***> wrote: hey @splons, The feature was implemented in thepatch-2.1.0 branch. Could you check whether it works as expected? Here's an example of how it works: MCameraController(manager: manager) .afterMediaCaptured { $0 .returnToCameraView(true) .closeCameraController(false) .custom { print("Something") } }

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

splons commented 1 month ago

@FulcrumOne thank you for the fast action on this request. Tried it out and it works exactly as expected. Much appreciated!