图片资源加载

This commit is contained in:
xaoxuu 2020-06-15 15:29:27 +08:00
parent 31ca005583
commit 9003edc359
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ internal extension ProHUD {
/// Image
static func image(named: String) -> UIImage? {
return UIImage.init(named: named, in: bundle, compatibleWith: nil)
return UIImage(named: named) ?? UIImage.init(named: named, in: bundle, compatibleWith: nil)
}