Skip to content

[iOS][Regression] SafeAreaPaddings are applied by default  #16503

Closed

Description

@marwalsch

Current behavior

This screenshot was taken with Uno.WinUI 5.1.104:

Image (2)

As you can see, the page's grey background reaches beyond the status bar and the dock. This behaviour is intended (at least this was the default up until now).


This is the same view with Uno.WinUI 5.2.94:

Image

The page is enclosed by the status bar and the dock. To me it looks a lot like as id SafeAreaPaddings are enabled.

Expected behavior

The page should reach beyond the status bar and the dock and dictate its background.

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

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.WinUI 5.2.94/5.3.0-dev.798

Affected platforms

iOS

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Apr 29, 2024
  2. jeromelaban commented on Apr 29, 2024

    @jeromelaban
    Member

    @kazo0 does this look familiar?

  3. kazo0 commented on Apr 29, 2024

    @kazo0
    Contributor

    @marwalsch this behaviour is typically driven by:

    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item

    In the styles.xml in the Android folder. Those usually shouldn't default to true in Uno apps. Would you be able to attach your reproduction apps as zips here? I can take a look and see what's causing this

    Were these two apps just created from the Uno templates and nothing else was changed except the Uno version?

  4. kazo0 commented on Apr 29, 2024

    @kazo0
    Contributor

    Oh wait I just realized this is marked as iOS, sorry I thought those screenshots looked like an android device. Ok will investigate but would still be good to have those sample apps attached

  5. marwalsch commented on Apr 29, 2024

    @marwalsch
    Author

    @kazo0 I just tried this on the Android simulator. Here status bar and dock always behave as in image 2 from above, at least in 5.1.104 and several earlier releases.

    I will try to break this down in a repro.

  6. self-assigned this
    on May 13, 2024
  7. kazo0 commented on May 14, 2024

    @kazo0
    Contributor

    @marwalsch does the page have any content in it behind the green areas?

  8. kazo0 commented on May 14, 2024

    @kazo0
    Contributor

    @marwalsch Also, if you would be able to post a repro project where this is happening on iOS, that would be super helpful! I Can't seem to get this to reproduce on my side. Is this happening on a physical iOS device or on the simulator as well?

  9. marwalsch commented on May 22, 2024

    @marwalsch
    Author

    @kazo0 Apologies for the delay, had plenty of interferences lately.

    @marwalsch does the page have any content in it behind the green areas?

    Yes, the blackening roughly matches the original content. It shows that content is compressed along the y-Axis if you look at the space between blackened space and end of the grey background (if you look very closely). The repro makes this clearer

    @marwalsch Also, if you would be able to post a repro project where this is happening on iOS, that would be super helpful! I Can't seem to get this to reproduce on my side. Is this happening on a physical iOS device or on the simulator as well?

    Is there a way to send the repro over a private channel? This way I could just strip down the affected project rather than rebuilding a new repro to avoid leakage of anything meant for the public.
    I don't recall having tested this on the Simulator. It definitely is an issue on a physical iPhone 12 and SE.

  10. kazo0 commented on May 22, 2024

    @kazo0
    Contributor

    @marwalsch No worries!

    I think maybe you could push a sample app as a private repo on your GitHub and perhaps give me access to that repo only?

    But first, there's a chance this might have been fixed with the latest dev builds of Uno, so if you can try using version 5.3.0-dev.1256 or later and let me know?

  11. marwalsch commented on May 28, 2024

    @marwalsch
    Author

    @kazo0 The latest pre-releases indeed fixed this, I just tested it on the same devices as above.
    Thanks a lot!

  12. kazo0 commented on May 28, 2024

    @kazo0
    Contributor

    @Youssef1313 another one fixed by the lifecycle PR. Same as #16715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

difficulty/tbdkind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions