Documentation Archive Developer
Search

CoreData Changes for Swift

CoreData

Declaration
From
class NSAsynchronousFetchRequest<ResultType : NSFetchRequestResult> : NSPersistentStoreRequest {
    var fetchRequest: NSFetchRequest<ResultType> { get }
    var completionBlock: CoreData.NSPersistentStoreAsynchronousFetchResultCompletionBlock? { get }
    var estimatedResultCount: Int
    init(fetchRequest request: NSFetchRequest<ResultType>, completionBlock blk: (@escaping (NSAsynchronousFetchResult<ResultType>) -> Swift.Void)? = nil)
}
To
class NSAsynchronousFetchRequest<ResultType : NSFetchRequestResult> : NSPersistentStoreRequest {
    var fetchRequest: NSFetchRequest<ResultType> { get }
    var completionBlock: CoreData.NSPersistentStoreAsynchronousFetchResultCompletionBlock? { get }
    var estimatedResultCount: Int
    init(fetchRequest request: NSFetchRequest<ResultType>, completionBlock blk: ((NSAsynchronousFetchResult<ResultType>) -> Swift.Void)? = nil)
}

Declaration
From
init(fetchRequest request: NSFetchRequest<ResultType>, completionBlock blk: (@escaping (NSAsynchronousFetchResult<ResultType>) -> Swift.Void)? = nil)
To
init(fetchRequest request: NSFetchRequest<ResultType>, completionBlock blk: ((NSAsynchronousFetchResult<ResultType>) -> Swift.Void)? = nil)