Skip to content

Commit 4878b4b

Browse files
committed
Use native list row separator for comment rows
- Removed custom Divider with padding from CommentRow - Changed listRowSeparator from .hidden to .visible - Native separator automatically adjusts width based on comment hierarchy
1 parent a725036 commit 4878b4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Features/Comments/Sources/Comments/CommentsComponents.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct CommentsForEach: View {
163163
value: [comment.id: geometry.frame(in: .global)],
164164
)
165165
})
166-
.listRowSeparator(.hidden)
166+
.listRowSeparator(.visible)
167167
.if(comment.voteLinks?.upvote != nil && !comment.upvoted) { view in
168168
view.swipeActions(edge: .leading, allowsFullSwipe: true) {
169169
Button {
@@ -274,7 +274,6 @@ struct CommentRow: View {
274274

275275
var body: some View {
276276
VStack(alignment: .leading, spacing: 8) {
277-
Divider().padding(.bottom, 6)
278277
HStack {
279278
Text(comment.by)
280279
.scaledFont(.subheadline)

0 commit comments

Comments
 (0)