We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7afbaa1 commit e4ea6aaCopy full SHA for e4ea6aa
1 file changed
Sources/Controller/ImagePickerController+Closure.swift
@@ -48,6 +48,9 @@ import Photos
48
// And since we are using the blocks api. Set ourselfs as delegate
49
imagePicker.imagePickerDelegate = imagePicker
50
51
+ // Invoke presentationController before actually presenting to fix a memory leak issue.
52
+ _ = imagePicker.presentationController
53
+
54
// Present
55
self.present(imagePicker, animated: animated, completion: completion)
56
}
0 commit comments