I just installed Xcode 8 beta 2
and iOS 10 beta
. I have an existing project where I updated from swift 2.3 to swift 3 based on a prompt from Xcode. I received an error with my code data code.
This was auto generated in the conversion from swift 2.3 to swift 3 by xcode
var fetchedResultsController: NSFetchedResultsController<AnyObject>!
the error I'm receiving is
Type 'AnyObject' does not conform to protocol 'NSFetchRequestResult'
I tried to conform AnyObject
extension AnyObject: NSFetchRequestResult {}
But I receive another error
I am not sure what I need to do or if my fetchedResultsController needs to be changed in the first place.
ANSWER: var fetchedResultsController: NSFetchedResultsController<Content>!