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
Reply to Xcode 16.1 not recognizing connected iPhone
Hmm seems like a cable issue. After switching to an Anker cable, device was recognized correctly.
Replies
Boosts
Views
Activity
Dec ’24
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:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Extra Trailing Closure for List {}
I am on macOS 15.1.1, Xcode 16.2
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25