@@ -23,13 +23,13 @@ public struct ModelConfiguration: Hashable {
23
23
}
24
24
25
25
public init ( path: String ? = nil , name: String ? = nil ,
26
+ schema : NSManagedObjectModel ? = nil ,
27
+ isStoredInMemoryOnly : Bool = false ,
28
+ allowsSave : Bool = true ,
26
29
groupAppContainerIdentifier : String ? = nil ,
27
30
cloudKitContainerIdentifier : String ? = nil ,
28
31
groupContainer : GroupContainer = . none,
29
- cloudKitDatabase : CloudKitDatabase = . none,
30
- schema : NSManagedObjectModel ? = nil ,
31
- allowsSave : Bool = true ,
32
- isStoredInMemoryOnly : Bool = false )
32
+ cloudKitDatabase : CloudKitDatabase = . none)
33
33
{
34
34
let actualPath : String
35
35
@@ -114,20 +114,21 @@ public extension ModelConfiguration {
114
114
get { URL ( fileURLWithPath: path) }
115
115
}
116
116
117
- init ( url: URL , name: String ? = nil ,
117
+ init ( _ name: String ? = nil , schema: Schema ? = nil , url: URL ,
118
+ isStoredInMemoryOnly: Bool = false , allowsSave: Bool = true ,
118
119
groupAppContainerIdentifier: String ? = nil ,
119
120
cloudKitContainerIdentifier: String ? = nil ,
120
121
groupContainer: GroupContainer = . none,
121
- cloudKitDatabase: CloudKitDatabase = . none, schema: Schema ? = nil ,
122
- allowsSave: Bool = true , isStoredInMemoryOnly: Bool = false )
122
+ cloudKitDatabase: CloudKitDatabase = . none)
123
123
{
124
124
self . init ( path: url. path, name: name ?? url. lastPathComponent,
125
+ schema: schema,
126
+ isStoredInMemoryOnly: isStoredInMemoryOnly,
127
+ allowsSave: allowsSave,
125
128
groupAppContainerIdentifier: groupAppContainerIdentifier,
126
129
cloudKitContainerIdentifier: cloudKitContainerIdentifier,
127
130
groupContainer: groupContainer,
128
- cloudKitDatabase: cloudKitDatabase,
129
- schema: schema, allowsSave: allowsSave,
130
- isStoredInMemoryOnly: isStoredInMemoryOnly)
131
+ cloudKitDatabase: cloudKitDatabase)
131
132
}
132
133
}
133
134
0 commit comments