1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-08 14:46:42 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/MastodonUI/Vendor/VisualEffectView.swift

16 lines
490 B
Swift

//
// VisualEffectView.swift
//
//
// Created by MainasuK on 2022/11/8.
//
import SwiftUI
// ref: https://stackoverflow.com/a/59111492/3797903
public struct VisualEffectView: UIViewRepresentable {
public var effect: UIVisualEffect?
public func makeUIView(context: UIViewRepresentableContext<Self>) -> UIVisualEffectView { UIVisualEffectView() }
public func updateUIView(_ uiView: UIVisualEffectView, context: UIViewRepresentableContext<Self>) { uiView.effect = effect }
}