Post

Replies

Boosts

Views

Activity

Reply to Type '()' cannot conform to 'View error
You're using the wrong thing. ForEach<Data, ID, Content> is a SwiftUI struct and expects to be provided a view in its content closure. What you're looking for is Collection.forEach(_ body: (Self.Element) throws -> Void), which iterates over a collection.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23