You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been attempting to use the MvxTagsView in my MVVMCross 5.7 project, but if I when I add the package, implement the MvxTagListView and build, my compiled binary is missing my assets from my Asset Catalog, and is instead replaced with the 'ic_removetag' asset from the Asset Catalog of this project (You can check this by inspecting the compiled Assets.car). I've tried to add an Asset Catalog in one of your samples and saw similar results.
Strangely, if I make some changes to my Asset Catalog (rename it, open it in Xcode, etc), it appears to bring all my assets back, but remove the ic_removetag asset. This means that whenever you set show 'enableTagButton' to true, we get an Mvx error because the button is initialised with that asset first, even if we set our own custom ButtonIcon.
I'll keep investigating with the hope of submitting a PR but wanted to submit an issue as you may have some other ideas. Cheers!
EDIT: I've been playing around trying to fix the TagsView and have found that deleting the Asset Catalog and the SetImage line in the Initialize method of the TagButtonView allows me to set my own ButtonIcon and everything works. I'll work on a more elegant solution so we can keep the default icon (probably FFImageLoading or a bitmap) and submit a PR when I get the chance 😎
The text was updated successfully, but these errors were encountered:
Hey @merckxite, that sounds good. I apologize for the delay!
I think TagButtonView definitely needs an improvement, or at least the library should provide an easier way to customize which control type to use (I'm thinking on a hook for when an individual TagView is created for example).
Did you get anywhere with this so far? Do you think you would be able to submit a PR adding a repro case to the sample otherwise? :)
Apologies for my belated reply @nmilcoff, I was in a rush to use the TagsView so I fixed it to achieve what I needed (which basically was to rip out the asset catalog). When I get a spare second I'll add that asset back in by another method like I mentioned previously and create a PR. I've also migrated the library and samples to MvvmCross 6 (thanks for your work on that!) so I'll include that as well 🎉
Hey @nmilcoff,
I've been attempting to use the MvxTagsView in my MVVMCross 5.7 project, but if I when I add the package, implement the MvxTagListView and build, my compiled binary is missing my assets from my Asset Catalog, and is instead replaced with the 'ic_removetag' asset from the Asset Catalog of this project (You can check this by inspecting the compiled Assets.car). I've tried to add an Asset Catalog in one of your samples and saw similar results.
Strangely, if I make some changes to my Asset Catalog (rename it, open it in Xcode, etc), it appears to bring all my assets back, but remove the ic_removetag asset. This means that whenever you set show 'enableTagButton' to true, we get an Mvx error because the button is initialised with that asset first, even if we set our own custom ButtonIcon.
I'll keep investigating with the hope of submitting a PR but wanted to submit an issue as you may have some other ideas. Cheers!
EDIT: I've been playing around trying to fix the TagsView and have found that deleting the Asset Catalog and the SetImage line in the Initialize method of the TagButtonView allows me to set my own ButtonIcon and everything works. I'll work on a more elegant solution so we can keep the default icon (probably FFImageLoading or a bitmap) and submit a PR when I get the chance 😎
The text was updated successfully, but these errors were encountered: