From 0a942f3a0b381a3676ee82b2d0ab74b7160d891f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20He=C3=9F?= Date: Sat, 30 Sep 2023 17:03:52 +0200 Subject: [PATCH] Add `configurations` to PC Does return the `NSPersistentStoreDescription`s though. We could alias `NSPersistentStoreDescription` to the `ModelConfiguration`, but we'd need at least a slot for storing the models associated w/ the configuration. --- .../ManagedModels/Container/NSPersistentContainer+Data.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/ManagedModels/Container/NSPersistentContainer+Data.swift b/Sources/ManagedModels/Container/NSPersistentContainer+Data.swift index 50a8e09..ea043fd 100644 --- a/Sources/ManagedModels/Container/NSPersistentContainer+Data.swift +++ b/Sources/ManagedModels/Container/NSPersistentContainer+Data.swift @@ -13,6 +13,11 @@ extension NSPersistentContainer { //@MainActor - TBD :-) @inlinable public var mainContext : NSManagedObjectContext { viewContext } + + @inlinable + public var configurations : [ NSPersistentStoreDescription ] { + persistentStoreDescriptions + } convenience public init(for model : NSManagedObjectModel,