XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

[Bug] Fix Local Image is not working in AvatarView (iOS Platform)

Open DenisLaky opened this issue 2 years ago • 8 comments

Description

When AvatarView is used with iOS xcassets it displays Text value instead of image, while the same image is displayed in Xamarin.Forms.Image control.

Link to Reproduction Sample

The same issue is described in related android bug: https://github.com/xamarin/XamarinCommunityToolkit/issues/1025

Expected Behavior

Image resource from xcassets is visible in AvatarView

Actual Behavior

"X" text is visible in AvatarView

Steps to Reproduce

  1. Add new ImageSet in xcassets ( with "test_image_set" name ).
  2. Set "test_image_set" value to AccountView.Source property;
  3. Set "test_image_set" value to ImageView (Xamarin.Forms default control) to ImageView.Source property;

DenisLaky avatar Oct 10 '22 19:10 DenisLaky

Hello @DenisLaky, Could you attach a small repro?

pictos avatar Oct 10 '22 19:10 pictos

@pictos Done.

DenisLaky avatar Oct 11 '22 13:10 DenisLaky

@DenisLaky I can't see the link to the github repo that reproduces your issue... Maybe you forgot to add in the last edition?

pictos avatar Oct 11 '22 13:10 pictos

I have similar issue data binding through viewmodel. Same databind to a Image work. AvatarView in a collection view datatemplate works but for some reason straight databind does not work. If I hardcode the dinding property on viewmodel init, it works.

Going back to image with CornerRadius, not time to fiddle around with random errors.

Deepfreezed avatar Oct 12 '22 17:10 Deepfreezed

@Deepfreezed can you share the link to the repro?

pictos avatar Oct 12 '22 18:10 pictos

@pictos I have specified steps to reproduce in Steps to Reproduce section. What link do you need?

DenisLaky avatar Nov 04 '22 16:11 DenisLaky

@DenisLaky we don't have too much time available to create a reproduction following the steps, the steps are more a guidance to us to reproduce the issue using a sample project, that reproduces the issue. So, if you can create the a sample project, upload it to the github and share the link here, we can prioritize this issue (:

pictos avatar Nov 04 '22 22:11 pictos

Same issue here, when binding source through viewmodel it shows text, if you load again then it shows the image, changing value from viewModel does not update the image, this is only happening in iOs Android works as expected.

PonyOny avatar Mar 13 '23 16:03 PonyOny