Repository navigation
[iOS, Mac] Fix GraphicsView drawable shadows ignoring FlowDirection - #39544
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39544Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39544" |
This comment has been minimized.
This comment has been minimized.
|
Hey there @@SyedAbdulAzeemSF4852! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
Native rendering behavior still needs confirmation from passing iOS and Mac Catalyst device tests and human review.
No open issues 🎉
What changed in this PR
Fixes #39511 by making GraphicsView drawable shadows follow right-to-left layout on iOS and Mac Catalyst, aligning their horizontal direction with the mirrored drawing.
Changes:
- Adds an internal canvas flag to reverse horizontal shadow offsets.
- Sets the flag from the effective layout direction and clears it after drawing.
- Adds device tests covering direction changes and positive and negative shadow offsets.
| File | Description |
|---|---|
| src/Graphics/src/Graphics/Platforms/MaciOS/PlatformCanvas.cs | Mirrors horizontal shadow offsets when enabled. |
| src/Graphics/src/Graphics/Platforms/iOS/DirectRenderer.cs | Applies and resets layout-dependent shadow mirroring. |
| src/Core/tests/DeviceTests/Handlers/GraphicsView/GraphicsViewHandlerTests.iOS.cs | Tests shadow placement across layout-direction changes. |
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
Tests Failure Analysis
🧪 CI Analysis — click to expand📊 maui-pr
🧪 maui-pr-devicetestsNo failures found. 🧪 maui-pr-uitests
All five target samples have coverage gaps; missing matches cannot clear these MacCatalyst failures. 🧭 Follow-up — actions and refreshNext action: Inspect Android install diagnostics and MacCatalyst screenshots/Appium traces; compare identical setup on main.
|
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
Root Cause
Description of Change
Issues Fixed
Fixes #39511
Validated the behaviour in the following platforms
Output
iOS_Before.mov
iOS_Afer.mov
Mac_Before.mov
Mac_After.mov