set an empty nav title for reader view to prevent nav bar from reappearing

This commit is contained in:
Satindar Dhillon 2022-05-09 13:40:20 -07:00
parent 65f2baa8c4
commit 9cab60b107

View file

@ -13,7 +13,9 @@ struct FeedCardNavigationLink: View {
var body: some View {
let destination = LinkItemDetailView(viewModel: LinkItemDetailViewModel(item: item, homeFeedViewModel: viewModel))
#if os(iOS)
let modifiedDestination = destination.navigationBarHidden(true)
let modifiedDestination = destination
.navigationBarHidden(true)
.navigationTitle("")
#else
let modifiedDestination = destination
#endif
@ -51,7 +53,9 @@ struct GridCardNavigationLink: View {
var body: some View {
let destination = LinkItemDetailView(viewModel: LinkItemDetailViewModel(item: item, homeFeedViewModel: viewModel))
#if os(iOS)
let modifiedDestination = destination.navigationBarHidden(true)
let modifiedDestination = destination
.navigationBarHidden(true)
.navigationTitle("")
#else
let modifiedDestination = destination
#endif