Update UIImage's imageLiteralResourceName:
initializer
#10941
Labels
good first issue
The issue is a good candidate for a community contribution or for a newcomer to the team.
type: enhancement
A request for an enhancement.
We have several places where we initialize images using
UIImage(imageLiteralResourceName: String)
initializer. This could be an issue since relies on a String literal and it's implementation shows that would crash if the resource cannot be found:Instead we should use
UIImage(named: String)
which would returnnil
instead.The text was updated successfully, but these errors were encountered: