From b8e033f7366918a78f57d3295348953fdaef0ad2 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 19 Sep 2023 18:26:31 +0800 Subject: [PATCH] Fixes for iOS15 --- .../OmnivoreKit/Sources/App/Views/LibraryTabView.swift | 10 +++------- .../Sources/App/Views/PrimaryContentView.swift | 1 + 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift index 39fa29ec8..90e5f9c2c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift @@ -43,13 +43,9 @@ struct LibraryTabView: View { ) var body: some View { - if #available(iOS 16.0, *) { - NavigationView { - HomeView(viewModel: libraryViewModel) - } - } else { - // Fallback on earlier versions - EmptyView() + NavigationView { + HomeView(viewModel: libraryViewModel) + .navigationBarTitleDisplayMode(.inline) } } } diff --git a/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift b/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift index b8962dd4b..d4efcf18c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/PrimaryContentView.swift @@ -89,6 +89,7 @@ import Views .sheet(isPresented: $addLinkPresented) { NavigationView { LibraryAddLinkView() + .navigationBarTitleDisplayMode(.inline) } } }