From 6c06e42061d84d876931a5bd2fd5ad18c837b823 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Mon, 15 Jul 2024 13:08:41 +0400 Subject: [PATCH] replace BlurView with .thinMaterial --- .../Views/Chat/ComposeMessage/ComposeView.swift | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift b/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift index b01f3f78fb..4fad264449 100644 --- a/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift +++ b/apps/ios/Shared/Views/Chat/ComposeMessage/ComposeView.swift @@ -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: [])