mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Backport blur effect for iOS 14/macOS Big Sur
This commit is contained in:
@@ -33,10 +33,10 @@ struct DetailBadge: View {
|
||||
.background(.thinMaterial)
|
||||
} else {
|
||||
content
|
||||
#if os(tvOS)
|
||||
.background(Color.background(scheme: colorScheme))
|
||||
#else
|
||||
.background(Color.background.opacity(0.95))
|
||||
#if os(macOS)
|
||||
.background(VisualEffectBlur())
|
||||
#elseif os(iOS)
|
||||
.background(VisualEffectBlur(blurStyle: .systemThinMaterial))
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user