update
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 445 KiB |
|
@ -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 {
|
||||
|
|