Skip to content

Commit 74bfa26

Browse files
committed
Another overload to remove init ambiguity
Similar overload in SwiftData.
1 parent 4703402 commit 74bfa26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/ManagedModels/Container/ModelConfiguration.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Created by Helge Heß.
3-
// Copyright © 2023 ZeeZide GmbH.
3+
// Copyright © 2023-2024 ZeeZide GmbH.
44
//
55

66
@preconcurrency import CoreData
@@ -141,6 +141,10 @@ public extension ModelConfiguration {
141141
cloudKitDatabase: cloudKitDatabase)
142142
}
143143

144+
@inlinable
145+
init(isStoredInMemoryOnly: Bool) {
146+
self.init(schema: nil, isStoredInMemoryOnly: isStoredInMemoryOnly)
147+
}
144148
@inlinable
145149
init(for forTypes: any PersistentModel.Type...,
146150
isStoredInMemoryOnly: Bool = false)

0 commit comments

Comments
 (0)