Skip to content

Log warnings in ImageAsset.image and SystemImage.image when loadImage() fails #51

Closed
@mpospese

Description

@mpospese

Let's log to console from var image: UIImage when loadImage() returns nil and we resort to the fallback image.
(This is preferable to logging from loadImage() which can be expected to return nil under certain unit tests.)

See how YMatterType logs when fonts don't load and let's adopt a similar pattern for declaring the Logger to use.
This will be iOS 14+.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions