You aren't searching the resources folder. Lets say your data is called 'data.json' and is saved with this path Main Bundle > resources > data.json, your code is searching for the file in the main bundle, not the resources folder. I'd recommend you just put the file in the main bundle to make your life simpler.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: