Opening mediafilepicker from within modal on iOS does not work
Closed this issue · 0 comments
acivier-serial commented
Describe the bug
When the mediafilepicker is triggered from within a page that was opened using showModal()
, the picker is loaded behind the page.
To Reproduce
Just try to open the filePicker inside a view which was created with the showModal()
method of NativeScript
Expected behavior
The filepicker's modal should be in front of the parent modal.
NativeScript Info(please run tns info
):
⚠ Update available for component nativescript. Your current version is 6.0.3 and the latest available version is 6.1.0.
⚠ Update available for component tns-core-modules. Your current version is 6.0.5 and the latest available version is 6.1.0.
⚠ Update available for component tns-android. Your current version is 6.0.0 and the latest available version is 6.1.0.
⚠ Update available for component tns-ios. Your current version is 6.0.1 and the latest available version is 6.1.0.
Solution
A solution could be to pass the view modal reference to instantiate the filepicker instead of the UIApplication.sharedApplication.keyWindow.rootViewController
.