I am trying to parse a plist.
The code snippet is given below:
if let path = Bundle.main.path(forResource: Constants.plistName, ofType: Constants.plistType) {
guard let myDictionary = NSDictionary(contentsOfFile: path) else {
//throw some error
} }
If I set the type of myDictionary to Dictionary, I can no longer use the contentsOfFile method. Please help.