From 5de414fae9cf6b85263c4df588cce0b7fffd8453 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Fri, 3 Jun 2022 20:35:15 -0700 Subject: [PATCH] hide nav bar in reader pres view --- .../Sources/Views/FontSizeAdjustmentPopoverView.swift | 5 +++-- apple/OmnivoreKit/Sources/Views/FormSheetWrapper.swift | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Views/FontSizeAdjustmentPopoverView.swift b/apple/OmnivoreKit/Sources/Views/FontSizeAdjustmentPopoverView.swift index 75baa2afa..6ec7d051c 100644 --- a/apple/OmnivoreKit/Sources/Views/FontSizeAdjustmentPopoverView.swift +++ b/apple/OmnivoreKit/Sources/Views/FontSizeAdjustmentPopoverView.swift @@ -60,7 +60,9 @@ public struct WebPreferencesPopoverView: View { } ) } + .padding() } + .navigationBarTitleDisplayMode(.inline) } public var body: some View { @@ -120,10 +122,9 @@ public struct WebPreferencesPopoverView: View { Spacer() } .padding() + .navigationBarHidden(true) } .accentColor(.appGrayTextContrast) - .navigationTitle("kmlm") - .navigationBarTitleDisplayMode(.inline) } } diff --git a/apple/OmnivoreKit/Sources/Views/FormSheetWrapper.swift b/apple/OmnivoreKit/Sources/Views/FormSheetWrapper.swift index ae6e3ef10..4bab1d0d8 100644 --- a/apple/OmnivoreKit/Sources/Views/FormSheetWrapper.swift +++ b/apple/OmnivoreKit/Sources/Views/FormSheetWrapper.swift @@ -39,8 +39,7 @@ import SwiftUI if UIDevice.isIPhone { if let sheet = controller.sheetPresentationController { - // sheet.preferredCornerRadius = 32 - sheet.prefersGrabberVisible = true + sheet.prefersGrabberVisible = false sheet.detents = [.medium()] sheet.widthFollowsPreferredContentSizeWhenEdgeAttached = true }