We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89014de commit 13ad034Copy full SHA for 13ad034
Examples/other_plugins/IDFACollection.swift
@@ -82,7 +82,8 @@ extension IDFACollection: iOSLifecycle {
82
if status == .notDetermined && !alreadyAsked {
83
// we don't know, so should ask the user.
84
alreadyAsked = true
85
- DispatchQueue.main.async {
+ DispatchQueue.main.async { [weak self] in
86
+ guard let self else { return }
87
askForPermission()
88
}
89
0 commit comments