XamarinCommunityToolkit
XamarinCommunityToolkit copied to clipboard
[Bug] Fix Local Image is not working in AvatarView (iOS Platform)
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
- Add new ImageSet in xcassets ( with "test_image_set" name ).
- Set "test_image_set" value to AccountView.Source property;
- Set "test_image_set" value to ImageView (Xamarin.Forms default control) to ImageView.Source property;
Hello @DenisLaky, Could you attach a small repro?
@pictos Done.
@DenisLaky I can't see the link to the github repo that reproduces your issue... Maybe you forgot to add in the last edition?
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 can you share the link to the repro?
@pictos I have specified steps to reproduce in Steps to Reproduce section. What link do you need?
@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 (:
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.