[BUG] - Modal Style. Dismiss button. Not working
FedorovMisha opened this issue · comments
Describe the bug
Having tried to run the first example, I caught this error. The cross button does not work. It doesn't close the modal window.
To Reproduce
Steps to reproduce the behavior:
-
Insert this in ContentView.swift
struct ContentView: View {
@State var showModal = false
var body: some View {
Button(action: {
showModal=true
}, label: {
Text("Ask user for permissions")
})
.JMModal(showModal: $showModal, for: [.locationAlways, .photo, .microphone])
}
}
2. Run app
3. Click on button
3. Tap on dismiss button
Expected behavior
Dismiss button not working
Screenshots
Desktop (please complete the following information):
- OS: iOS 15.5
@FedorovMisha
Thanks for reaching out, does this address your question?