replace BlurView with .thinMaterial

This commit is contained in:
spaced4ndy
2024-07-15 13:08:41 +04:00
parent 116e2e09b7
commit 6c06e42061
@@ -377,7 +377,7 @@ struct ComposeView: View {
}
}
}
.background(BlurView(style: .systemThinMaterial).ignoresSafeArea())
.background(.thinMaterial)
.onChange(of: composeState.message) { msg in
if composeState.linkPreviewAllowed {
if msg.count > 0 {
@@ -1114,17 +1114,6 @@ func parsedMsgHasSimplexLink(_ parsedMsg: [FormattedText]) -> Bool {
parsedMsg.contains(where: { ft in ft.format?.isSimplexLink ?? false })
}
struct BlurView: UIViewRepresentable {
let style: UIBlurEffect.Style
func makeUIView(context: Context) -> UIVisualEffectView {
let view = UIVisualEffectView(effect: UIBlurEffect(style: style))
return view
}
func updateUIView(_ uiView: UIVisualEffectView, context: Context) {}
}
struct ComposeView_Previews: PreviewProvider {
static var previews: some View {
let chat = Chat(chatInfo: ChatInfo.sampleData.direct, chatItems: [])