Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[net7.0] Revert default for UseSafeAreaProperty to value from .NET 6 for iOS #16379

Merged
merged 1 commit into from Aug 19, 2023

Conversation

PureWeen
Copy link
Member

@PureWeen PureWeen commented Jul 26, 2023

Backport of #16093 to net7.0

/cc @hartez

One thing to consider
#16352

…16093)

* Revert default for UseSafeAreaProperty to value from .NET 6 for iOS
Fixes #12823

* Update to ignore broken iOS test for now

* Fix shell tab test
# Conflicts:
#	src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.iOS.cs
#	src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs
@PureWeen PureWeen changed the base branch from main to net7.0 July 26, 2023 16:24
@PureWeen PureWeen marked this pull request as ready for review July 28, 2023 12:41
@PureWeen PureWeen marked this pull request as draft July 28, 2023 13:04
@samhouts samhouts added this to the .NET 7 + Servicing milestone Jul 31, 2023
@PureWeen
Copy link
Member Author

We might need to pause on this until we resolve this issue
#16352

If you compare shell here before/after this PR you'll see the follow differences. I tested this on XF and didn't see a layout change on XF when changing this value.

image image

@PureWeen PureWeen marked this pull request as ready for review August 16, 2023 15:46
@PureWeen PureWeen requested a review from hartez August 16, 2023 15:50
@PureWeen
Copy link
Member Author

Having thought through it a bit more, I think this one is fine to backport

There's a lot of very random code for handling SafeAreas in forms that's really hard to stay consistent with.

Xamarin.Forms/Xamarin.Forms.Platform.iOS/Renderers/PageRenderer.cs at a979cd28bf9dd59b33c390b617e120420f2f977d · xamarin/Xamarin.Forms (github.com)

Right now having NET7 be different from NET6/NET8 and Xamarin.Forms is probably the worst of the options.

The issue we eventually need to address in MAUI is accounting for SafeArea and SCrollViews. We should have some sort of safe area indicator on ScrollView that effects the adjustedContentInset on a UIScrollView

@rmarinho rmarinho merged commit d47c215 into net7.0 Aug 19, 2023
30 checks passed
@rmarinho rmarinho deleted the backport/pr-16093-to-net7.0 branch August 19, 2023 11:49
rmarinho added a commit that referenced this pull request Sep 18, 2023
PureWeen pushed a commit that referenced this pull request Sep 18, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants