Raed Ghazal
12/08/2023, 4:56 AMpathForResource
to access a json file asset but it keeps returning null
as path, apparently not finding the fileval path = NSBundle.mainBundle.pathForResource("../resources/data.json", ofType = "json") // tried "resources/data.json" and just "data.json" as well
val path = NSBundle.mainBundle.pathForResource("data", ofType = "json")
this worked 🙌Raed Ghazal
12/08/2023, 4:57 AM.json
will try again