We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d927c99 commit ce483beCopy full SHA for ce483be
V2exOS/Views/TopicDetail/CommentListView.swift
@@ -21,7 +21,8 @@ struct CommentListView: View {
21
Label("\(commentCount ?? 0) 条回复", systemImage: "bubble.middle.bottom.fill")
22
23
if let commentList {
24
- ForEach(commentList) { comment in
+ ForEach(0..<commentList.count, id: \.self) { index in
25
+ let comment = commentList[index]
26
27
Divider()
28
@@ -44,6 +45,10 @@ struct CommentListView: View {
44
45
if let created = comment.created {
46
Text(Date(timeIntervalSince1970: TimeInterval(created)).fromNow())
47
}
48
+
49
+ Spacer()
50
51
+ Text("#\(index)")
52
53
.foregroundColor(Color(NSColor.tertiaryLabelColor))
54
@@ -65,7 +70,7 @@ struct CommentListView: View {
65
70
.font(.body)
66
71
67
72
68
- }
73
+ }
69
74
75
76
0 commit comments