From 13dfa03b4a0981d93dc0f3c9702af3c94a72a5f1 Mon Sep 17 00:00:00 2001 From: iphone201988 Date: Tue, 3 Jan 2023 06:25:43 +0530 Subject: [PATCH] Fix safe area for example query #124 (#126) --- ec3730/Views/Host/HostBarView.swift | 10 ++++------ ec3730/Views/Host/HostResult.swift | 4 ++-- ec3730/Views/Host/HostViewSectionFocusView.swift | 3 ++- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ec3730/Views/Host/HostBarView.swift b/ec3730/Views/Host/HostBarView.swift index 294cbc7..f893ccd 100644 --- a/ec3730/Views/Host/HostBarView.swift +++ b/ec3730/Views/Host/HostBarView.swift @@ -41,11 +41,6 @@ struct HostBarView: View { Spacer() } } - .background( - VisualEffectView(effect: UIBlurEffect(style: .systemMaterial)) - .ignoresSafeArea(.all, edges: .horizontal) - ) - .ignoresSafeArea() .confirmationDialog("Information", isPresented: $showInfo) { Button(action: { UIPasteboard.general.string = url.absoluteString @@ -57,7 +52,10 @@ struct HostBarView: View { }, label: { Label("Copy Date", systemImage: "doc.on.doc") }) - } + }.background( + VisualEffectView(effect: UIBlurEffect(style: .systemMaterial)) + .ignoresSafeArea() + ) } } diff --git a/ec3730/Views/Host/HostResult.swift b/ec3730/Views/Host/HostResult.swift index 5b8585f..dead326 100644 --- a/ec3730/Views/Host/HostResult.swift +++ b/ec3730/Views/Host/HostResult.swift @@ -29,9 +29,9 @@ struct HostResult: View { } } } + }.safeAreaInset(edge: .bottom) { + HostBarView(url: group.url, date: group.date) } - .background(Color(UIColor.systemGroupedBackground)) - HostBarView(url: group.url, date: group.date) } .background(Color(UIColor.systemGroupedBackground)) .padding(.top, 0.15) diff --git a/ec3730/Views/Host/HostViewSectionFocusView.swift b/ec3730/Views/Host/HostViewSectionFocusView.swift index 5f2f32d..eefd7c5 100644 --- a/ec3730/Views/Host/HostViewSectionFocusView.swift +++ b/ec3730/Views/Host/HostViewSectionFocusView.swift @@ -9,8 +9,9 @@ struct HostViewSectionFocusView: View { VStack(spacing: 0) { ScrollView { HostViewSectionContent(sectionModel: model, canQuery: true) + }.safeAreaInset(edge: .bottom) { + HostBarView(url: url, date: date) } - HostBarView(url: url, date: date) } .navigationTitle(model.service.name) .navigationBarTitleDisplayMode(.inline)