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] Button background not appearing when setting Gradient and Shadow #12959

Open
riccardominato opened this issue Jan 27, 2023 · 2 comments
Open
Assignees
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/iOS 🍎 t/bug Something isn't working
Milestone

Comments

@riccardominato
Copy link

riccardominato commented Jan 27, 2023

Description

I was trying to create a button with a shadow and setting a gradient as background.

On iOS the rendered button has a transparent background and has no shadow.
If I trigger Hot Reload on gradient, background and shadow appear.

Steps to Reproduce

  1. Create a button.
  2. Set the Button.Shadow property.
  3. Set the Button.Background property to a gradient.

Expected result (Android)*

Actual result (iOS)

* The shadow is actually not perfect even in Android. You can notice that it's cut at the button bottom.

Link to public reproduction project repository

https://github.com/Riccardo11/MauiIssues/tree/main/ButtonWithGradientAndShadow

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 16.2, MacOS 12.6

Did you find any workaround?

Wrapping the button inside a Border control and setting Shadow and Gradient Background for the Border seems to do the job.

Relevant log output

No response

@riccardominato riccardominato added the t/bug Something isn't working label Jan 27, 2023
@riccardominato riccardominato changed the title [iOS] Button background not working when setting Gradient and Shadow [iOS] Button background not appearing when setting Gradient and Shadow Jan 27, 2023
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jan 27, 2023
@jsuarezruiz jsuarezruiz added the area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing label Jan 30, 2023
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jan 30, 2023
@ghost
Copy link

ghost commented Jan 30, 2023

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@DeepWorksStudios
Copy link

This issue is still present in the lastest version of Maui and iOS just it behaves slightly differently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants