From 7ea237316dd39fbc89225742a00a8250bba2f56a Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Thu, 10 Mar 2022 11:27:38 -0800 Subject: [PATCH] disable split view panel visibility gesture --- apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift b/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift index 1bea072f8..6134bb0a8 100644 --- a/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift @@ -53,6 +53,10 @@ public struct PrimaryContentView: View { .introspectSplitViewController { $0.preferredSplitBehavior = .tile $0.preferredPrimaryColumnWidth = 200 + if #available(iOS 14.5, *) { + $0.presentsWithGesture = false + $0.displayModeButtonVisibility = .always + } } } #endif