Post

Replies

Boosts

Views

Activity

Reply to Extra Trailing Closure for List {}
The reason I pasted the screenshot was so the error was visible. It won't show up in the pasted code. I isolated that the error was being caused because of a class definition in another file but I can't figure out why. If I comment out the class definition and keep the list, the project compiles. If I comment out the list and keep the class definition, the project compiles. If I keep both, I get the error in the List definition, which is odd. <I don't think the forums let me upload a zip, otherwise I can have uploaded the entire project. Its a small test project to display list data> Class Definition class List { var items: [ListItem] init(items: [ListItem]) { self.items = items } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25