jevonmao / PermissionsSwiftUI

A SwiftUI package to beautifully display and handle permissions.

Home Page:https://jevonmao.github.io/PermissionsSwiftUI/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cinemapara opened this issue · comments

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.

Very weird behavior, I'm investigating into this.

Any Update on this