Skip to content

Unable to use ForEach #32

@twodayslate

Description

@twodayslate
struct ContentView: View {
    var body: some View {
            SettingStack {
                SettingPage(title: "Playground") {
                    SettingGroup(header: "Group 1") {
                        ForEach(0..<5) { i in
                            SettingCustomView {
                                Text("Hello Group \(i)")
                            }
                        }
                    }
                }
            }
        }
    }
}

Error: Static method 'buildExpression' requires that 'SettingCustomView' conform to 'View'

Possible useful resources:

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