Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions Sources/gitdiff/Core/PlatformColors.swift

This file was deleted.

1 change: 0 additions & 1 deletion Sources/gitdiff/Views/DiffFileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,4 @@ struct DiffFileView: View {

DiffFileView(file: sampleFile)
.padding()
.background(Color.appBackground)
}
1 change: 0 additions & 1 deletion Sources/gitdiff/Views/DiffLineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,4 @@ struct DiffLineView: View {
)
)
}
.background(Color.appBackground)
}
4 changes: 0 additions & 4 deletions Sources/gitdiff/Views/DiffRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public struct DiffRenderer: View {
.font(.caption)
.foregroundColor(.secondary)
}
.padding()
.frame(maxWidth: .infinity, maxHeight: .infinity)
} else if let files = parsedFiles, files.isEmpty {
VStack(spacing: 20) {
Expand All @@ -58,18 +57,15 @@ public struct DiffRenderer: View {
.multilineTextAlignment(.center)
.padding(.horizontal)
}
.padding()
.frame(maxWidth: .infinity, maxHeight: .infinity)
} else if let files = parsedFiles {
VStack(spacing: 16) {
ForEach(files) { file in
DiffFileView(file: file)
}
}
.padding()
}
}
.background(Color.appBackground)
.task(id: diffText) {
self.parsedFiles = try? await DiffParser.parse(diffText)
}
Expand Down