diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png index 493f5fb..b06f8aa 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png index 064aafc..f082a46 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76.png index e569aad..b009ee9 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png index 3a88100..6adee3d 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png index f6e7611..f8ec671 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png index c531100..ac4f461 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png index 7de6b04..9f7724c 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png index e1b2bb3..5dc17d9 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png index 7de6b04..9f7724c 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png index 42e69ae..e2a0124 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png index 493f5fb..b06f8aa 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small.png index e71e984..71170c3 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png index 951c861..f9f3e95 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png index a6a24e2..aab0230 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png differ diff --git a/Example/Example/Assets.xcassets/AppIcon.appiconset/icon.png b/Example/Example/Assets.xcassets/AppIcon.appiconset/icon.png index 08b0b19..bd77872 100644 Binary files a/Example/Example/Assets.xcassets/AppIcon.appiconset/icon.png and b/Example/Example/Assets.xcassets/AppIcon.appiconset/icon.png differ diff --git a/ProHUD/HUDConfig.swift b/ProHUD/HUDConfig.swift index b5047e5..340be1c 100644 --- a/ProHUD/HUDConfig.swift +++ b/ProHUD/HUDConfig.swift @@ -19,18 +19,18 @@ public extension ProHUD { /// 动态颜色(适配iOS13) public lazy var dynamicColor: UIColor = { - if #available(iOS 13.0, *) { - let color = UIColor { (traitCollection: UITraitCollection) -> UIColor in - if traitCollection.userInterfaceStyle == .dark { - return .init(white: 1, alpha: 1) - } else { - return .init(white: 0.1, alpha: 1) - } - } - return color - } else { - // Fallback on earlier versions - } +// if #available(iOS 13.0, *) { +// let color = UIColor { (traitCollection: UITraitCollection) -> UIColor in +// if traitCollection.userInterfaceStyle == .dark { +// return .init(white: 1, alpha: 1) +// } else { +// return .init(white: 0.1, alpha: 1) +// } +// } +// return color +// } else { +// // Fallback on earlier versions +// } return .init(white: 0.1, alpha: 1) }() @@ -87,8 +87,8 @@ internal var createBlurView: () -> UIVisualEffectView = { return { let vev = UIVisualEffectView() if #available(iOS 13.0, *) { - vev.effect = UIBlurEffect(style: .systemMaterial) -// vev.effect = UIBlurEffect(style: .extraLight) +// vev.effect = UIBlurEffect(style: .systemMaterial) + vev.effect = UIBlurEffect(style: .extraLight) } else if #available(iOS 11.0, *) { vev.effect = UIBlurEffect(style: .extraLight) } else { diff --git a/README.md b/README.md index 3a805b3..2c9ffa6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ -# ProHUD -可完全定制化的HUD,包含顶部区域的Toast,中央区域的Alert和底部区域的ActionSheet。 + + +
+ + + + + +完全可定制化的HUD,包含顶部区域的Toast,中央区域的Alert和底部区域的ActionSheet。 +