Skip to content

Commit fae8428

Browse files
authored
Update README on instructions about autoDismiss
1 parent 83437c1 commit fae8428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ same applies for JMAlert
202202
.JMAlert(showModal: $showModal, for: [.camera], autoCheckAuthorization: false)
203203
```
204204
### Auto Dismiss
205-
PermissionsSwiftUI by default will automatically dismiss the modal or alert after user allows the last permission item. However, you can override this behavior.
205+
PermissionsSwiftUI by default will not have any auto dimiss behavior. You can override this behaviour to make it automatically dismiss the modal or alert after user allows the last permission item. (All permissions must be ALLOWED, if any is DENIED, it will not auto dismiss).
206206
```Swift
207-
func JMModal(showModal: Binding<Bool>, for permissions: [PermissionType], autoDismiss: Bool) -> some View
207+
.JMModal(... autoDismiss: Bool) -> some View
208208
```
209209
Pass in `true` or `false` to select whether to automatically dismiss the view.
210210

0 commit comments

Comments
 (0)