easy5 pts · first answer countsswiftswiftuilists
ForEach over a custom struct
ForEach(orders) { … } fails to compile for a plain struct Order. What does it need?
Discussion 0
Join free to post in the discussion.
Related questions
- Safely unwrapping a Swift optionalMobile App Developer
- Showing a long listMobile App Developer
- Swift struct assignment copiesMobile App Developer
- Swift class shared referenceMobile App Developer
- Layering views in SwiftUIMobile App Developer
- Why list items need keysMobile App Developer
- Decoding JSON with extra keysMobile App Developer
- Showing 5,000 ordersMobile App Developer