Dont use the following primer

This commit is contained in:
Jackson Harper
2023-12-29 21:43:54 +08:00
parent 225791a715
commit 17c4a9be37

View File

@ -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) {