I have a NSURL object which gives me the path of a local file (in documents folder). I want to populate an NSData object with the contents of this file
NSURL
NSData
guard let data = FileManager.default.contents(atPath: path) else { ...