Platform
What platform is your issue or question related to? (Delete other platforms).
Version of SDK
v1.2.11
Details
The imageView passed via ResourceResolver is not visible when it already has an image in it.
Steps to reproduce
- Create an UIImageView, imageView
- Add an image to it.
imageView.image = UIImage(named: "foo")
- Pass the imageView via resolveImageViewResource(_ url: URL?) -> UIImageView? protocol method
- The image won't be visible on the card
This also happens when the imageView is created with an image. UIImageView(image: UIImage(named: "foo"))
sample_payloads.zip
Initial Investigations
Not sure whether this is the root cause. But yea, it was found that the constraints of the imageView gets set using Key-Value Observer on image property. Since this property is pre-filled before the KVO registers, the imageView never gets the correct constraints and it's not getting visible on screen.
Platform
What platform is your issue or question related to? (Delete other platforms).
Version of SDK
v1.2.11
Details
The imageView passed via ResourceResolver is not visible when it already has an image in it.
Steps to reproduce
imageView.image = UIImage(named: "foo")This also happens when the imageView is created with an image.
UIImageView(image: UIImage(named: "foo"))sample_payloads.zip
Initial Investigations
Not sure whether this is the root cause. But yea, it was found that the constraints of the imageView gets set using Key-Value Observer on image property. Since this property is pre-filled before the KVO registers, the imageView never gets the correct constraints and it's not getting visible on screen.