Skip to content

Commit

Permalink
Figured out a way to hide the chevron
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahkeen committed Nov 22, 2024
1 parent e801e77 commit d649f07
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions ios/HackerNews/Screens/PostListScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,26 @@ struct PostListScreen: View {
.scaleEffect(2)
case .loaded(let stories):
List(stories, id: \.id) { story in
let navigationValue: AppViewModel.AppNavigation = {
if let url = story.makeUrl() {
return AppViewModel.AppNavigation.webLink(url: url, title: story.title)
} else {
return AppViewModel.AppNavigation.storyComments(story: story)
}
}()
NavigationLink(
value: navigationValue,
label: {
StoryRowV2(
model: appState,
story: story
let navigationValue: AppViewModel.AppNavigation = {
if let url = story.makeUrl() {
return AppViewModel.AppNavigation.webLink(url: url, title: story.title)
} else {
return AppViewModel.AppNavigation.storyComments(story: story)
}
}()

StoryRowV2(
model: appState,
story: story
)
.background(
NavigationLink(
value: navigationValue,
label: {}
)
}
)
.listRowBackground(Color.clear)
.opacity(0.0)
)
.listRowBackground(Color.clear)
}
.listStyle(.plain)
}
Expand Down

0 comments on commit d649f07

Please sign in to comment.