import SwiftUI struct VisualEffectView: UIViewRepresentable { var effect: UIVisualEffect? func makeUIView(context _: UIViewRepresentableContext) -> UIVisualEffectView { UIVisualEffectView() } func updateUIView(_ uiView: UIVisualEffectView, context _: UIViewRepresentableContext) { uiView.effect = effect } }