Skip to content

Commit

Permalink
Fix safe area for example query #124 (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
iphone201988 authored Jan 3, 2023
1 parent 721d2d1 commit 13dfa03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions ec3730/Views/Host/HostBarView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -57,7 +52,10 @@ struct HostBarView: View {
}, label: {
Label("Copy Date", systemImage: "doc.on.doc")
})
}
}.background(
VisualEffectView(effect: UIBlurEffect(style: .systemMaterial))
.ignoresSafeArea()
)
}
}

Expand Down
4 changes: 2 additions & 2 deletions ec3730/Views/Host/HostResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion ec3730/Views/Host/HostViewSectionFocusView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13dfa03

Please sign in to comment.