improve carplay apply button ui
This commit is contained in:
1 parent
759597dfb2
commit
f9ba2dee0d
7 files changed
+126
-48
No files matched your search
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// MaterialView.swift
|
||||
// Pocket Poster
|
||||
//
|
||||
// Created by lemin on 5/31/25.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct MaterialView: UIViewRepresentable {
|
||||
let material: UIBlurEffect.Style
|
||||
|
||||
init(_ material: UIBlurEffect.Style) {
|
||||
self.material = material
|
||||
}
|
||||
|
||||
func makeUIView(context: Context) -> UIVisualEffectView {
|
||||
UIVisualEffectView(effect: UIBlurEffect(style: material))
|
||||
}
|
||||
|
||||
func updateUIView(_ uiView: UIVisualEffectView, context: Context) {
|
||||
uiView.effect = UIBlurEffect(style: material)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user