Skip to content

Commit

Permalink
Fixed self reference in IDFA example.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Apr 23, 2024
1 parent 89014de commit 13ad034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Examples/other_plugins/IDFACollection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ extension IDFACollection: iOSLifecycle {
if status == .notDetermined && !alreadyAsked {
// we don't know, so should ask the user.
alreadyAsked = true
DispatchQueue.main.async {
DispatchQueue.main.async { [weak self] in
guard let self else { return }
askForPermission()
}
}
Expand Down

0 comments on commit 13ad034

Please sign in to comment.