-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS/Catalyst] Correctly render ContentPage brushes background #11721
Conversation
@@ -264,14 +265,24 @@ public static void UpdateBackgroundLayerFrame(this UIView view) | |||
|
|||
var layer = view.Layer; | |||
|
|||
UpdateBackgroundLayerFrame(layer, view.Bounds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not in 100% of the cases we will have the background layer as a sublayer of the main one. The main change is here, use recursion to get the background layer.
This changes also fixes #10445 on iOS/Catalyst. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the UpdateBackgroundLayerFrame method.
Thanks @jsuarezruiz for helping to solve this issue. This fix is going to be amazing due to it will help us to reduce the layers in our apps just to render a gradient in the app screens. 👍🏻 . This will also help to increase the performance of our apps by reducing the layers 💯 |
Description of Change
Correctly render ContentPage brushes background on iOS/Catalyst.
Issues Fixed
Fixes #11714