Nativescript: iOS 13: New modal view style doesnt clean up when swiped to close

Created on 19 Sep 2019  路  5Comments  路  Source: NativeScript/NativeScript

All latest, xcode 11 and official iOS 13:

When you swipe to close a modal (new native control), frame.topmost().currentPage.modal is not cleared out.

One side effect is this:
Open a modal, swipe to dismiss it, then try to open a dialog.

This line in dialogs fails:

var currentView = dialogs_common_1.getCurrentPage() || application_1.getRootView();
    if (currentView) {
        currentView = currentView.modal || currentView;

currentView becomes currentView.modal, which is gone, so the dialog is not presented.

backlog bug ios

Most helpful comment

HI @davecoffin,
I was able to recreate the problem with nativescript-sdk-examples-js. I will mark the issue as a bug and we will investigate it further.

All 5 comments

If anybody finds this and needs a quick workaround:
setting fullscreen to true on the modal presents the old style, which is not draggable, so doing that fixes the problem, you just lose the nice draggable modal.

HI @davecoffin,
I was able to recreate the problem with nativescript-sdk-examples-js. I will mark the issue as a bug and we will investigate it further.

@ADjenkov
Does #8024 actually fix this? Or just provide an API to not let the user close the modal with a gesture?

@davecoffin yes it fixes the problem you've reported and also provides new API to enable/disable it

Awesome you guys rock!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rogangriffin picture rogangriffin  路  3Comments

rLoka picture rLoka  路  3Comments

Leo-lay picture Leo-lay  路  3Comments

OscarLopezArnaiz picture OscarLopezArnaiz  路  3Comments

NordlingDev picture NordlingDev  路  3Comments