Swift, Swiftui, iOS App Development, Mobile App Development, Programming.
CurrentScheme = SchemaV1 ​ public enum SchemaV1: VersionedSchema { public static var versionIdentifier: Schema.Version { .init(1, 0, 0) } ​ public static var models: [any PersistentModel.Type] { [Item.self] } } Next, we embed the declaration of the Item class into SchemaV1, and maintain consistency