mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
14 lines
359 B
Swift
14 lines
359 B
Swift
import SwiftUI
|
|
|
|
struct VisualEffectView: UIViewRepresentable {
|
|
var effect: UIVisualEffect?
|
|
|
|
func makeUIView(context _: UIViewRepresentableContext<Self>) -> UIVisualEffectView {
|
|
UIVisualEffectView()
|
|
}
|
|
|
|
func updateUIView(_ uiView: UIVisualEffectView, context _: UIViewRepresentableContext<Self>) {
|
|
uiView.effect = effect
|
|
}
|
|
}
|