Make sure your Class name field is actually Module.Task, where Module is the name of your app. CoreData classes in Swift are namespaced. Right now, your object is being pulled out of the context as an NSManagedObject, not as a Task, so the as-cast is failing.
More Related Contents:
- Swift Send Data to a ViewController from a ViewController [duplicate]
- Unable to find specific subclass of NSManagedObject
- How to save Array to CoreData?
- Sqlite File Location Core Data
- Check if property is set in Core Data?
- Xcode NSManagedObject subclass contains optionals when they are marked as non-optional
- NSPersistentContainer concurrency for saving to core data
- How to create managedObjectContext using Swift 3 in Xcode 8?
- Swift 3 Core Data Delete Object
- How to access CoreData model in today extension (iOS)
- How do you update a CoreData entry that has already been saved in Swift?
- SwiftUI DatePicker Binding optional Date, valid nil
- Core Data in Swift: Only saving last object in a for loop
- Duplicate Symbol Error in NSManagedObject Subclass
- Accessing Core Data Stack in MVVM application
- How to properly group a list fetched from CoreData by date?
- How to get the indexpath.row when an element is activated?
- How do I add text to an image in iOS Swift?
- How to iterate for loop in reverse order in swift?
- Drop-Down List in UITableView in iOS
- Drawing class drawing straight lines instead of curved lines
- Create a rectangle with just two rounded corners in swift?
- How to I import 3rd party frameworks into Xcode Playground?
- iOS 8 Auto cell height – Can’t scroll to last row
- Swift 3.1 deprecates initialize(). How can I achieve the same thing?
- Dynamically increase height of UILabel & TableView Cell?
- Why can’t I call the default super.init() on UIViewController in Swift?
- Swift 3: Unrecognized selector sent to instance Xcode 8 [duplicate]
- UIDevice currentDevice model possible values
- google maps iOS SDK: custom icons to be used as markers