Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS - can't show Popup from a modal page #1189

@michaelb-yambay

Description

@michaelb-yambay

Description

On iOS, Navigation.ShowPopup() fails when called from a modally presented Page. The same scenario works fine on Android.

Steps to Reproduce

  1. Call Navigation.PushModalAsync(new ModalPage()) to show ModalPage
  2. On ModalPage, call Navigation.ShowPopup(new CustomPopup()) so show CustomPopup.

Expected Behavior

Popup should display on iOS as it does on Android

Actual Behavior

Popup failed to display with error "2021-04-10 12:04:13.936120+0100 XF_PopupModalIssue.iOS[5438:145915] [Presentation] Attempt to present <Xamarin_CommunityToolkit_UI_Views_PopupRenderer: 0x7fcd44e60000> on <Xamarin_Forms_Platform_iOS_PlatformRenderer: 0x7fcd44c25ba0> (from <Xamarin_Forms_Platform_iOS_PageRenderer: 0x7fcd4711aba0>) which is already presenting <Xamarin_Forms_Platform_iOS_ModalWrapper: 0x7fcd44d42e30>."

Basic Information

  • Version with issue: v1.1.0
  • Last known good version: N/A
  • IDE:
  • Platform Target Frameworks:
    • iOS: 14.4
    • Android: v9.0 (API Level 28)
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Workaround

None discovered

Reproduction imagery

Screenshot 2021-04-10 at 12 09 34

Reproduction Link

Attached zipped XF solution reproduces the issue
XF_PopupModalIssue.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    a/popupbugSomething isn't working. Breaky break.p/iOSiOS platform issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions