Hi
I was trying out the new generic API in XCode 8, and I expected this code to make my variable currencies be of type [Currency], where Currency is the class of an entity that I have defined in Core Data. But the type of currencies is NSPersistentStoreResult.
The Core Data talk in WWDC seems to suggest that generics meant no more type casting. What am I doing wrong here?
I am using the latest Xcode 8 beta from July 5.
TIA
Mark
let context: NSManagedObjectContext = getDataStack().context
let request = Currency.fetchRequest()
let currencies = try context.execute(Currency.fetchRequest())