Skip to content

[BUG] - @Environment(\.scenePhase) breaks JMModal authorization Status and autoDismiss #150

@cinemapara

Description

@cinemapara

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.

Metadata

Metadata

Assignees

Labels

confirmed bugA bug behavior that has been confirmed by maintainers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions