File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,26 @@ struct PostListScreen: View {
21
21
. scaleEffect ( 2 )
22
22
case . loaded( let stories) :
23
23
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: { }
37
40
)
38
- }
39
- )
40
- . listRowBackground ( Color . clear)
41
+ . opacity ( 0.0 )
42
+ )
43
+ . listRowBackground ( Color . clear)
41
44
}
42
45
. listStyle ( . plain)
43
46
}
You can’t perform that action at this time.
0 commit comments