mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
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
|
|
}
|
|
}
|