Skip to content

Comments

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

Merged
rmarinho merged 6 commits intomainfrom
fix-11714
Feb 1, 2023
Merged

[iOS/Catalyst] Correctly render ContentPage brushes background#11721
rmarinho merged 6 commits intomainfrom
fix-11714

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

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.

@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 💯

@jsuarezruiz jsuarezruiz requested a review from hartez January 25, 2023 11:18
@rmarinho rmarinho enabled auto-merge February 1, 2023 17:14
@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