Skip to content

Commit d773f17

Browse files
Merge pull request #6 from xinnjie/feat-lazystack-for-hunk
feat: change VStack to LasyVStack in DiffFileView
2 parents 9388cb0 + 72912c2 commit d773f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/gitdiff/Views/DiffFileView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct DiffFileView: View {
5555
.frame(maxWidth: .infinity, alignment: .leading)
5656
.background(configuration.theme.headerBackground)
5757

58-
VStack(spacing: configuration.lineSpacing.value) {
58+
LazyVStack(spacing: configuration.lineSpacing.value) {
5959
ForEach(hunk.lines) { line in
6060
DiffLineView(line: line)
6161
}

0 commit comments

Comments
 (0)