[BUG] - @Environment(\.scenePhase) breaks JMModal authorization Status and autoDismiss
cinemapara opened this issue · comments
cinemapara commented
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.
Jevon Mao commented
Very weird behavior, I'm investigating into this.
Radhakishore commented
Any Update on this