Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[iOS][Image Rendering][ResourceResolvers] Image not visible when ImageView is passed with an Image via ResourceResolver #4650

Description

@akaashdev

Platform

What platform is your issue or question related to? (Delete other platforms).

  • iOS

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.

Metadata

Metadata

Assignees

Labels

BugPartner-CiscoWebExBugs impacting CiscoWebEx integration scenarios

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions