Initial commit
This commit is contained in:
11
WhiteNights/Widgets/VisualEffectBlur.swift
Normal file
11
WhiteNights/Widgets/VisualEffectBlur.swift
Normal file
@ -0,0 +1,11 @@
|
||||
import SwiftUI
|
||||
|
||||
struct VisualEffectBlur: UIViewRepresentable {
|
||||
var blurStyle: UIBlurEffect.Style
|
||||
|
||||
func makeUIView(context: Context) -> UIVisualEffectView {
|
||||
UIVisualEffectView(effect: UIBlurEffect(style: blurStyle))
|
||||
}
|
||||
|
||||
func updateUIView(_ uiView: UIVisualEffectView, context: Context) { }
|
||||
}
|
Reference in New Issue
Block a user