From 09131d58730cecb3920b6b2f8d65d8edb52195ce Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Wed, 16 Dec 2020 11:35:04 -0500 Subject: [PATCH] Remove duplicate ToolbarItemGroup in Mac app --- Shared/PostList/PostListView.swift | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Shared/PostList/PostListView.swift b/Shared/PostList/PostListView.swift index 8199e17..0e3fd42 100644 --- a/Shared/PostList/PostListView.swift +++ b/Shared/PostList/PostListView.swift @@ -84,24 +84,6 @@ struct PostListView: View { showAllPosts: showAllPosts, postCount: $postCount ) - .toolbar { - ToolbarItemGroup(placement: .primaryAction) { - if let selectedPost = model.selectedPost { - ActivePostToolbarView(activePost: selectedPost) - .alert(isPresented: $model.isPresentingNetworkErrorAlert, content: { - Alert( - title: Text("Connection Error"), - message: Text(""" - There is no internet connection at the moment. Please reconnect or try again later. - """), - dismissButton: .default(Text("OK"), action: { - model.isPresentingNetworkErrorAlert = false - }) - ) - }) - } - } - } .onDisappear { DispatchQueue.main.async { self.model.selectedCollection = nil