Skip to content

[iOS] Setting Window.Content multiple times causes empty screen #6143

Closed

Description

@xperiandri

Current behavior

https://github.com/xperiandri/Elmish.Uno/blob/1173782cefbf93778bd83953b4ff0803ae135e79/src/Templates/SolutionTemplate/SolutionTemplate.Shared/App.xaml.cs#L129

Setting Window.Content multiple times like you see on lines 119 and 129 even to the same value causes a white screen on iOS.

Expected behavior

How to reproduce it (as minimally and precisely as possible)

  1. Create app from template
  2. Duplicate line 88 of App.xaml.cs
_window.Content = rootFrame;
_window.Content = rootFrame;
  1. Run on iOS
  2. See white screen

Environment

Nuget Package:

  • Uno.UI

Nuget Package Version(s): 3.7.4

Affected platform(s):

  • iOS

IDE:

  • Visual Studio 2019 (version: 16.10)

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Jun 2, 2021
  2. changed the title [-][iOS] Setting Windows.Content multiple times causes empty screen[/-] [+][iOS] Setting Window.Content multiple times causes empty screen[/+] on Jun 2, 2021
  3. changed the title [-][iOS] Setting Window.Content multiple times causes empty screen[/-] [+][iOS] Setting `Window.Content` multiple times causes empty screen[/+] on Jun 2, 2021
  4. added
    difficulty/medium 🤔
    and removed
    difficulty/tbd
    triage/untriaged
    on Jun 2, 2021
  5. self-assigned this
    on Jun 7, 2021
  6. added
    platform/ios 🍎
    project/navigation-lifecycle 🧬
    on Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/medium 🤔kind/bugplatform/ios 🍎project/navigation-lifecycle 🧬

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions