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

[iOS/Catalyst] Correctly render ContentPage brushes background #11721

Merged
merged 6 commits into from
Feb 1, 2023

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Correctly render ContentPage brushes background on iOS/Catalyst.

Captura de pantalla 2022-11-29 a las 10 55 29

Captura de pantalla 2022-11-29 a las 10 45 23

Issues Fixed

Fixes #11714

@jsuarezruiz jsuarezruiz added t/bug Something isn't working area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/iOS 🍎 area-controls-pages Page types labels Nov 29, 2022
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Nov 29, 2022
@@ -264,14 +265,24 @@ public static void UpdateBackgroundLayerFrame(this UIView view)

var layer = view.Layer;

UpdateBackgroundLayerFrame(layer, view.Bounds);
Copy link
Contributor Author

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.

@jsuarezruiz
Copy link
Contributor Author

This changes also fixes #10445 on iOS/Catalyst.
Captura de pantalla 2022-11-29 a las 11 14 31

Copy link
Contributor

@hartez hartez left a 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.

src/Core/src/Platform/iOS/ViewExtensions.cs Show resolved Hide resolved
@vhugogarcia
Copy link
Contributor

vhugogarcia commented Dec 13, 2022

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 💯

@rmarinho rmarinho merged commit c5cb70f into main Feb 1, 2023
@rmarinho rmarinho deleted the fix-11714 branch February 1, 2023 18:23
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
@Eilon Eilon removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-pages Page types labels May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossible to add the background gradients feature on ContentPage iOS
7 participants