Skip to content

Shadows not rendering as expected on Android and iOS #24414

Closed

Description

@albyrock87

Description

The following image shows how a 24dp black shadow with (0,0) offset renders on Android and iOS compared to Figma (which we can obviously trust 100%).

image

As you can see, compared to Figma (the expectation)

  • Android has a really small shadow
  • iOS shadow draws is definitely bigger than the expected size of 24dp

So both of them are just wrong.

Steps to Reproduce

<Grid RowDefinitions="*">
  <Border HeightRequest="248"
          WidthRequest="248"
          VerticalOptions="Center"
          HorizontalOptions="Center"
          StrokeShape="{RoundRectangle CornerRadius=24}"
          Stroke="Black"
          Padding="24" />
  <Border HeightRequest="200"
          WidthRequest="200"
          VerticalOptions="Center"
          HorizontalOptions="Center"
          StrokeShape="{RoundRectangle CornerRadius=24}"
          Background="LightGreen"
          Shadow="{Shadow Brush=Black, Offset='0,0', Radius=24, Opacity=1}" />
</Grid>

Link to public reproduction project repository

No response

Version with bug

8.0.80 SR8

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. github-actions commented on Aug 24, 2024

    @github-actions
    Contributor

    Hi I'm an AI powered bot that finds similar issues based off the issue title.

    Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

    Open similar issues:

    Closed similar issues:

    Note: You can give me feedback by thumbs upping or thumbs downing this comment.

  2. added this to the 9.0-rc2 milestone on Aug 24, 2024
  3. moved this from Todo to Ready To Review in MAUI SDK Ongoingon Aug 24, 2024
  4. modified the milestones: 9.0-rc2, .NET 8 SR9 on Aug 27, 2024
  5. added
    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawing
    on Aug 27, 2024
  6. moved this from Ready To Review to Done in MAUI SDK Ongoingon Sep 3, 2024
  7. locked and limited conversation to collaborators on Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions