Revert "Improved blur on images, especially in dark mode"
Can't open images anymore
This reverts commit 47a6f7ff38.
This commit is contained in:
@@ -9,18 +9,6 @@ import SwiftUI
|
|||||||
import LinkPresentation
|
import LinkPresentation
|
||||||
import NaturalLanguage
|
import NaturalLanguage
|
||||||
|
|
||||||
struct Blur: UIViewRepresentable {
|
|
||||||
var style: UIBlurEffect.Style = .systemUltraThinMaterial
|
|
||||||
|
|
||||||
func makeUIView(context: Context) -> UIVisualEffectView {
|
|
||||||
return UIVisualEffectView(effect: UIBlurEffect(style: style))
|
|
||||||
}
|
|
||||||
|
|
||||||
func updateUIView(_ uiView: UIVisualEffectView, context: Context) {
|
|
||||||
uiView.effect = UIBlurEffect(style: style)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
struct NoteContentView: View {
|
struct NoteContentView: View {
|
||||||
let damus_state: DamusState
|
let damus_state: DamusState
|
||||||
let event: NostrEvent
|
let event: NostrEvent
|
||||||
@@ -45,10 +33,11 @@ struct NoteContentView: View {
|
|||||||
if show_images && artifacts.images.count > 0 {
|
if show_images && artifacts.images.count > 0 {
|
||||||
ImageCarousel(urls: artifacts.images)
|
ImageCarousel(urls: artifacts.images)
|
||||||
} else if !show_images && artifacts.images.count > 0 {
|
} else if !show_images && artifacts.images.count > 0 {
|
||||||
ZStack {
|
|
||||||
ImageCarousel(urls: artifacts.images)
|
ImageCarousel(urls: artifacts.images)
|
||||||
.blur(radius: 10, opaque: true)
|
.blur(radius: 10)
|
||||||
Blur()
|
.overlay {
|
||||||
|
Rectangle()
|
||||||
|
.opacity(0.50)
|
||||||
}
|
}
|
||||||
.cornerRadius(10)
|
.cornerRadius(10)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user