We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e34f31 commit 21cb876Copy full SHA for 21cb876
src/imagepicker.ios.ts
@@ -28,7 +28,8 @@ export class ImagePicker extends data_observable.Observable {
28
}
29
30
get hostController() {
31
- return this.hostView ? this.hostView.viewController : UIApplication.sharedApplication.keyWindow.rootViewController;
+ let vc = this.hostView ? this.hostView.viewController : UIApplication.sharedApplication.keyWindow.rootViewController;
32
+ return vc.presentedViewController || vc;
33
34
35
constructor(options: Options = {}, hostView: View) {
0 commit comments