UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Building a menu using List

Forums > SwiftUI

Hey y'all! I having a problem with one your programs. I am following the steps on "Building a menu using List" but I found an error that does not let me continue. "Thread 1: Fatal error: Failed to locate menu.json in bundle" What did I do wrong? Thanks

2      

Hey there,

Make sure you've completed the following step from the first part of the tutorials:

And drag menu.json into your project navigator too – this describes all the menu items our restaurant offers, and will be decoded into instances of MenuSection and MenuItem.

Based on the error you're seeing this should fix the issue :)

--Jakub

2      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.