Skip to content

Fix IOS/MacOS AvataView background color with image bug#1539

Merged
TheCodeTraveler merged 4 commits into
CommunityToolkit:mainfrom
TRybina132:fix_avatar_view_ios
Nov 26, 2023
Merged

Fix IOS/MacOS AvataView background color with image bug#1539
TheCodeTraveler merged 4 commits into
CommunityToolkit:mainfrom
TRybina132:fix_avatar_view_ios

Conversation

@TRybina132

@TRybina132 TRybina132 commented Nov 20, 2023

Copy link
Copy Markdown
Member

Description of Change

This bug occurs if we use any instance of class derived from GeometryGroup as default clip for image in AvatarView on MacOs or IOS. In AvatarView RoundRectangleGeometry was used as default clip for image. This caused background color to overlay image.
image

In this pull request I decided not to set clip object if AvatarView is used on IOS/MacOS with this approach background does not overlay image on IOS or MacOS and RoundRectangleGeometry still be used as default image clip for other platforms.

How it looks in MacOS
image

In IOS
image

@TRybina132

Copy link
Copy Markdown
Member Author

@dotnet-policy-service agree

@TRybina132 TRybina132 marked this pull request as ready for review November 24, 2023 16:19

@TheCodeTraveler TheCodeTraveler left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @TRybina132!!

@TheCodeTraveler TheCodeTraveler enabled auto-merge (squash) November 26, 2023 19:16
@TheCodeTraveler TheCodeTraveler merged commit 19e30af into CommunityToolkit:main Nov 26, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants