-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
good first issueThe issue is a good candidate for a community contribution or for a newcomer to the team.The issue is a good candidate for a community contribution or for a newcomer to the team.type: enhancementA request for an enhancement.A request for an enhancement.
Description
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:
extension UIImage {
/// Creates an instance initialized with the given resource name.
///
/// Do not call this initializer directly. Instead, initialize a variable or
/// constant using an image literal.
required public convenience init(imageLiteralResourceName name: String)
}
Instead we should use UIImage(named: String)
which would return nil
instead.
Metadata
Metadata
Assignees
Labels
good first issueThe issue is a good candidate for a community contribution or for a newcomer to the team.The issue is a good candidate for a community contribution or for a newcomer to the team.type: enhancementA request for an enhancement.A request for an enhancement.