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] - @Environment(\.scenePhase) breaks JMModal authorization Status and autoDismiss #150

Open
cinemapara opened this issue Jan 26, 2024 · 1 comment
Assignees
Labels
confirmed bug A bug behavior that has been confirmed by maintainers

Comments

@cinemapara
Copy link

When i simply put
@Environment(.scenePhase) private var scenePhase
into the view where .JMModal is used or in a parent view

.JMModal(showModal: $showModal, for: [.camera, .microphone, .calendarFull], autoDismiss: true,
onAppear: {print("JMModal Appeared")},
onDisappear: {print("JMModal Disappeared")})

Then JMModal does not get the authorization status anymore and never disappears automatically.

@cinemapara cinemapara added the possible bug Something isn't working label Jan 26, 2024
@cinemapara cinemapara changed the title [BUG] - @Environment(\.scenePhase) private var scenePhase breaks [BUG] - @Environment(\.scenePhase) breaks JMModal authorization Status and autoDismiss Jan 26, 2024
@jevonmao jevonmao added confirmed bug A bug behavior that has been confirmed by maintainers and removed possible bug Something isn't working labels Feb 26, 2024
@jevonmao jevonmao self-assigned this Feb 26, 2024
@jevonmao
Copy link
Owner

Very weird behavior, I'm investigating into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed bug A bug behavior that has been confirmed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants