diff --git a/Examples/other_plugins/IDFACollection.swift b/Examples/other_plugins/IDFACollection.swift index ef73323..a2fe52e 100644 --- a/Examples/other_plugins/IDFACollection.swift +++ b/Examples/other_plugins/IDFACollection.swift @@ -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() } }