FileManager.documentURL is not recognized by Xcode

Hello !

I am learning through the Book SwiftUI apprentice, and I’m currently stuck at the JSON part.
While I’m copy-pasting the code that’s in the book, I’m getting this error.
Can you help me? I’m trying to find what’s wrong online but couldn’t find a solution atm… :frowning:

Capture d’écran, le 2021-07-21 à 14.26.31

1 Like

Hi Charlie!

Did you copy FileManagerExtensions.swift from the starter project into your project?

This is in the starter project section:

FileManagerExtensions.swift holds a static property that contains the Documents folder URL.

1 Like