Skip to content

Instantly share code, notes, and snippets.

@The0racle
The0racle / NSFetchedResultsController+SafeObjectAtIndexPath
Last active September 3, 2021 22:42
NSFetchedResultsController extension for safely retrieving objects without raising 'NSInternalInconsistencyException'.
//
// NSFetchedResultsController+SafeObjectAtIndexPath.swift
// This extension prevents the 'no object at index in section at index' exception.
//
// Copyright (c) 2016 Thiago Pereira
// MIT License, http://www.opensource.org/licenses/mit-license.php
import Foundation
extension NSFetchedResultsController{