[iOS] Button background not appearing when setting Gradient and Shadow #12959
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
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
Button.Shadow
property.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
The text was updated successfully, but these errors were encountered: