Skip to content

Commit 63f05f4

Browse files
committed
Figured out a way to hide the chevron
1 parent f3e4f0a commit 63f05f4

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

ios/HackerNews/Screens/PostListScreen.swift

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,26 @@ struct PostListScreen: View {
2121
.scaleEffect(2)
2222
case .loaded(let stories):
2323
List(stories, id: \.id) { story in
24-
let navigationValue: AppViewModel.AppNavigation = {
25-
if let url = story.makeUrl() {
26-
return AppViewModel.AppNavigation.webLink(url: url, title: story.title)
27-
} else {
28-
return AppViewModel.AppNavigation.storyComments(story: story)
29-
}
30-
}()
31-
NavigationLink(
32-
value: navigationValue,
33-
label: {
34-
StoryRowV2(
35-
model: appState,
36-
story: story
24+
let navigationValue: AppViewModel.AppNavigation = {
25+
if let url = story.makeUrl() {
26+
return AppViewModel.AppNavigation.webLink(url: url, title: story.title)
27+
} else {
28+
return AppViewModel.AppNavigation.storyComments(story: story)
29+
}
30+
}()
31+
32+
StoryRowV2(
33+
model: appState,
34+
story: story
35+
)
36+
.background(
37+
NavigationLink(
38+
value: navigationValue,
39+
label: {}
3740
)
38-
}
39-
)
40-
.listRowBackground(Color.clear)
41+
.opacity(0.0)
42+
)
43+
.listRowBackground(Color.clear)
4144
}
4245
.listStyle(.plain)
4346
}

0 commit comments

Comments
 (0)