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] - autoDismiss, dismiss the permissionView even by clicking on our of multiple items

gharary opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.

I have a JMModal with 3 permissions [Health, Motion, Notification].

By clicking any of them, with autoDismiss set to true, the view disappears without waiting for other permissions to be set.

Here is my code:

.JMModal(showModal: $showPermission, for: [.health(categories: .init(read:readData)),.notification,.motion],
autoDismiss: true,
autoCheckAuthorization: true,
restrictDismissal: true)

Expected behavior
disabling autoDismiss keeps the view open until manually dismiss it.

Desktop (please complete the following information):

  • OS: [e.g. iOS] 14.5
  • Version [e.g. 22] 1.5.2

Ok let me investigate this.

Need a few more days, on trip right now.

@gharary Try v1.5.3 and let me know if it's fixed.

Problem solved. Thanks