Merge pull request #3157 from omnivore-app/fix/ios-safe-area-in-reader

Ignore the bottom safe area in the iOS reader
This commit is contained in:
Jackson Harper
2023-11-23 16:08:51 +08:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,7 @@ struct LinkItemDetailView: View {
#endif
}
}
.ignoresSafeArea(.all, edges: .bottom)
.task {
await viewModel.loadItem(linkedItemObjectID: linkedItemObjectID, dataService: dataService)
}

View File

@ -570,6 +570,7 @@ struct WebReaderContainerView: View {
}
}
}
#if os(iOS)
VStack(spacing: 0) {
navBar
@ -620,6 +621,7 @@ struct WebReaderContainerView: View {
.animation(.spring())
.isOpaque(false)
}
.ignoresSafeArea(.all, edges: .bottom)
.onReceive(NSNotification.readerSnackBarPublisher) { notification in
if let message = notification.userInfo?["message"] as? String {
viewModel.snackbarOperation = SnackbarOperation(message: message,