Skip to content

Commit 13ad034

Browse files
committed
Fixed self reference in IDFA example.
1 parent 89014de commit 13ad034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/other_plugins/IDFACollection.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ extension IDFACollection: iOSLifecycle {
8282
if status == .notDetermined && !alreadyAsked {
8383
// we don't know, so should ask the user.
8484
alreadyAsked = true
85-
DispatchQueue.main.async {
85+
DispatchQueue.main.async { [weak self] in
86+
guard let self else { return }
8687
askForPermission()
8788
}
8889
}

0 commit comments

Comments
 (0)