From 17c4a9be37d27782bd81df90d407d7d68be18efc Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 29 Dec 2023 21:43:54 +0800 Subject: [PATCH] Dont use the following primer --- .../Sources/App/Views/LibraryTabView.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift index 07681a8fe..1fcf44107 100644 --- a/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/LibraryTabView.swift @@ -23,7 +23,7 @@ struct LibraryTabView: View { @AppStorage(UserDefaultKey.lastSelectedTabItem.rawValue) var selectedTab = "inbox" @AppStorage(UserDefaultKey.followingPrimerDisplayed.rawValue) var followingPrimerDisplayed = false - @State var showFollowingPrimer = true + @State var showFollowingPrimer = false @State var showExpandedAudioPlayer = false private let syncManager = LibrarySyncManager() @@ -74,10 +74,12 @@ struct LibraryTabView: View { var body: some View { VStack(spacing: 0) { - PresentationLink(transition: UIDevice.isIPad ? .popover : .sheet(detents: [.medium]), isPresented: $showFollowingPrimer) { - FollowingViewModal() - } label: { - EmptyView() + if showFollowingPrimer { + PresentationLink(transition: UIDevice.isIPad ? .popover : .sheet(detents: [.medium]), isPresented: $showFollowingPrimer) { + FollowingViewModal() + } label: { + EmptyView() + } } TabView(selection: $selectedTab) {