Skip to content

Doesn't works if main content is a List #39

@bfrolicher

Description

@bfrolicher

Hi
Using a list as main content doesn't works. List never displays

How to
In StocksMainContent, just replace body

var body: some View {
    VStack(spacing: 0) {
        ScrollView {
            ForEach(0..<5, id: \.self) { _ in
                newsRow
            }
        }
        Spacer(minLength: 72)
    }
}

with

var body: some View {
    List {
        ForEach(0..<50, id: \.self) { _ in
            newsRow
        }
    }
    .listStyle(.plain)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions