From 9003edc3596f42df34b440f1b3883329d92bde7d Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Mon, 15 Jun 2020 15:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B5=84=E6=BA=90=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/ProHUD.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ProHUD.swift b/Source/ProHUD.swift index af4c7d3..c62ac3d 100644 --- a/Source/ProHUD.swift +++ b/Source/ProHUD.swift @@ -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) }