From aa33eef6776db430de89fbc104d6d6a02845bcd3 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Wed, 22 Nov 2023 19:10:00 +0800 Subject: [PATCH] Ignore the bottom safe area in the iOS reader --- apple/OmnivoreKit/Sources/App/Views/LinkItemDetailView.swift | 1 + .../Sources/App/Views/WebReader/WebReaderContainer.swift | 2 ++ 2 files changed, 3 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/LinkItemDetailView.swift b/apple/OmnivoreKit/Sources/App/Views/LinkItemDetailView.swift index c6149fce0..393f87f46 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LinkItemDetailView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LinkItemDetailView.swift @@ -98,6 +98,7 @@ struct LinkItemDetailView: View { #endif } } + .ignoresSafeArea(.all, edges: .bottom) .task { await viewModel.loadItem(linkedItemObjectID: linkedItemObjectID, dataService: dataService) } diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift index 8042fa436..885b7bfd6 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift @@ -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,