mirror of https://github.com/xaoxuu/ProHUD
图片资源加载
This commit is contained in:
parent
31ca005583
commit
9003edc359
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue