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
Is there an easy way to provide a custom image for a custom card type?
I noticed that I could "hack" by having the card image name equal to the card type name, but imageForCardType is using self as the bundle, which returns nil if the image is contained in the project bundle and not the pod bundle.
Thank you @DannyVancura, it works if I do your solution, although I still think there should be a way to provide a custom image without duplicating assets in our project. Ideally, we would like to specify the image in the card type model so it's trivial to create a new card type and provide all the structure you want at the same place. Let me know your thoughts on that!
Hi there,
Is there an easy way to provide a custom image for a custom card type?
I noticed that I could "hack" by having the card image name equal to the card type name, but
imageForCardType
is usingself
as the bundle, which returns nil if the image is contained in the project bundle and not the pod bundle.Thank you for your help!
The text was updated successfully, but these errors were encountered: