Skip to content

Add image comparison assertions #8

@wibs

Description

@wibs

Although iOS seems to compare image assets correctly if they are loaded using the imageNamed function on UIImage, this only works because iOS uses the same image in memory for those objects. If the same image is loaded from another source (from the file system, using SDWebImage, etc.), this comparison will not work. To avoid this confusing scenario, an assertion should be added that compares the image data so we can know that two images are identical.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions