jevonmao / jevonmao/PermissionsSwiftUI
[BUG] - AutoDismiss does not work.
- Dominant language
- Swift
- Stars
- 1.6k
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
I have this code in
`.JMModal(
showModal: $isRequestPermissionVisible,
for: [.notification, .microphone, .camera, .photo, .siri, .contacts, .location, .opticBiometrics],
autoDismiss: true,
restrictDismissal: false,
onDisappear: {
requestedPermissions = true
}
)`
If all permissions are allowed, modal is not dissmissed at all.
Contributor guide
Research direction
Start by reproducing the shown JMModal configuration with all listed permissions already allowed, then trace the JMModal autoDismiss behavior and its onDisappear callback. Done means the modal dismisses when all permissions are granted while preserving the expected callback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100