I am currently reading in an array from a plist using this code
let filePath = Bundle.main.path(forResource: "levelList", ofType: "plist")
if let path = filePath {
devices = NSArray(contentsOfFile: path) as! [AnyObject]
}
let device1 = devices[0] as! [String: AnyObject]
let device2 = devices[1] as! [String: AnyObject]
If I know before I read from the file that I am only interested in device 1 is there a way to selectively only read in that part of the array?