diff --git a/CoreStore.podspec b/CoreStore.podspec index b4539d4..e733028 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "3.0.3" + s.version = "3.1.0" s.license = "MIT" s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift" s.homepage = "https://github.com/JohnEstropia/CoreStore" diff --git a/Sources/Info.plist b/Sources/Info.plist index 0ea7266..543e5f9 100644 --- a/Sources/Info.plist +++ b/Sources/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 3.0.3 + 3.1.0 CFBundleSignature ???? CFBundleVersion diff --git a/Sources/Observing/ListMonitor.swift b/Sources/Observing/ListMonitor.swift index dca47f5..e9272a9 100644 --- a/Sources/Observing/ListMonitor.swift +++ b/Sources/Observing/ListMonitor.swift @@ -202,7 +202,7 @@ public final class ListMonitor: Hashable { !self.isPendingRefetch || Thread.isMainThread, "Attempted to access a \(cs_typeName(self)) outside the main thread while a refetch is in progress." ) - return (self.fetchedResultsController.fetchedObjects as? [T]) ?? [] + return self.fetchedResultsController.dynamicCast().fetchedObjects ?? [] } /** @@ -371,7 +371,7 @@ public final class ListMonitor: Hashable { !self.isPendingRefetch || Thread.isMainThread, "Attempted to access a \(cs_typeName(self)) outside the main thread while a refetch is in progress." ) - return (self.fetchedResultsController.fetchedObjects as? [T] ?? []).index(of: object) + return (self.fetchedResultsController.dynamicCast().fetchedObjects ?? []).index(of: object) } /**