diff --git a/Sources/Controller/ImagePickerController+Closure.swift b/Sources/Controller/ImagePickerController+Closure.swift index 2b98e6e1..48174f20 100644 --- a/Sources/Controller/ImagePickerController+Closure.swift +++ b/Sources/Controller/ImagePickerController+Closure.swift @@ -48,6 +48,9 @@ import Photos // And since we are using the blocks api. Set ourselfs as delegate imagePicker.imagePickerDelegate = imagePicker + // Invoke presentationController before actually presenting to fix a memory leak issue. + _ = imagePicker.presentationController + // Present self.present(imagePicker, animated: animated, completion: completion) }