Repository: CodeEditApp/CodeEdit
File: CodeEdit/Features/Contributors/ContributorsView.swift (Swift)

Code before:

import SwiftUI

struct ContributorsView: View {

    @StateObject private var viewModel = ContributorsViewModel()
    @State private var displayDivider = false

    var body: some View {
        VStack(spacing: 0) {
            Image(nsImage: NSApp.applicationIconImage)
                .resizable()
                .frame(width: 48, height: 48)
            Text("Contributors")
                .font(.title)
                .padding(.vertical, 8)
            Divider()
                .opacity(displayDivider ? 1 : 0)
            OffsettableScrollView(showsIndicator: false) { offset in
                displayDivider = offset.y < 0
            } content: {
                LazyVStack(spacing: 0) {
                    ForEach(viewModel.contributors) { contributor in
                        ContributorRowView(contributor: contributor)
                        Divider()
                            .padding(.horizontal)
                    }
                }
            }
        }
        .frame(width: 350, height: 500)
        .background(.regularMaterial)
        .task {
            viewModel.loadContributors()
        }
    }

    func showWindow(width: CGFloat, height: CGFloat) {
        ContributorsWindowController(view: self, size: NSSize(width: width, height: height)).showWindow(nil)
    }
}

struct ContributorsView_Previews: PreviewProvider {
    static var previews: some View {
        ContributorsView()
    }
}

class ContributorsViewModel: ObservableObject {
    @Published private(set) var contributors: [Contributor] = []


Review comment (suggestion):
After discussing the Acknowledgement and Contributors design with @Wouter01, we are in agreement that these dividers in between rows should be subtle.
```suggestion
                        Divider()
                            .frame(height: 0.5)
                            .opacity(0.5)
                            .padding(.horizontal)
```
I've made this change to the Acknowledgments window in my PR.

Code after:

import SwiftUI

struct ContributorsView: View {

    @StateObject private var viewModel = ContributorsViewModel()
    @State private var displayDivider = false

    var body: some View {
        VStack(spacing: 0) {
            Image(nsImage: NSApp.applicationIconImage)
                .resizable()
                .frame(width: 48, height: 48)
            Text("Contributors")
                .font(.title)
                .padding(.vertical, 8)
            Divider()
                .opacity(displayDivider ? 1 : 0)
            OffsettableScrollView(showsIndicator: false) { offset in
                displayDivider = offset.y < 0
            } content: {
                LazyVStack(spacing: 0) {
                    ForEach(viewModel.contributors) { contributor in
                        ContributorRowView(contributor: contributor)
                        Divider()
                            .frame(height: 0.5)
                            .opacity(0.5)
                            .padding(.horizontal)
                    }
                }
            }
        }
        .frame(width: 280, height: 400)
        .background(.regularMaterial)
        .task {
            viewModel.loadContributors()
        }
    }

    func showWindow(width: CGFloat, height: CGFloat) {
        ContributorsWindowController(view: self, size: NSSize(width: width, height: height)).showWindow(nil)
    }
}

struct ContributorsView_Previews: PreviewProvider {
    static var previews: some View {
        ContributorsView()
    }
}

class ContributorsViewModel: ObservableObject {