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      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.

Learn more here

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.