Skip to content

Comments

[iOS] Fix issue rendering Button Background gradient with shadow#13022

Closed
jsuarezruiz wants to merge 7 commits intomainfrom
fix-12959
Closed

[iOS] Fix issue rendering Button Background gradient with shadow#13022
jsuarezruiz wants to merge 7 commits intomainfrom
fix-12959

Conversation

@jsuarezruiz
Copy link
Contributor

Description of Change

Fix issue rendering iOS Button with gradient and shadow.

Captura de pantalla 2023-01-31 a las 16 02 15

Captura de pantalla 2023-01-31 a las 16 13 27

To test/validate the changes, launch the .NET MAUI Gallery and navigate to the Button section. If the Background (Gradient) + Shadow sample is rendering correctly, the test has passed.

Issues Fixed

Fixes #12959

@jsuarezruiz jsuarezruiz added t/bug Something isn't working area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/ios area-controls-button Button, ImageButton labels Jan 31, 2023
@ghost ghost added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jan 31, 2023
@jsuarezruiz jsuarezruiz marked this pull request as draft February 7, 2023 12:49
@jsuarezruiz jsuarezruiz marked this pull request as ready for review February 7, 2023 15:55
Copy link
Contributor

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small changes needed. Mainly related to nullability. Nice use of the stack!

var stack = new Stack<CALayer>();
stack.Push(root);

while (stack.Count > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the use of the stack to build the iterator.

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems tests are crashing on iOS

@jsuarezruiz
Copy link
Contributor Author

Close this approach for now based on #13253 and we will reopen it with an alternative fix.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-button Button, ImageButton area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/ios t/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Button background not appearing when setting Gradient and Shadow

4 participants