Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jacobsapps/5d3802a4120e3724b67e15ae7e43123e to your computer and use it in GitHub Desktop.

Select an option

Save jacobsapps/5d3802a4120e3724b67e15ae7e43123e to your computer and use it in GitHub Desktop.
import SwiftData
final class CardDatabase: SwiftDatabase {
typealias T = CardEntity
let container: ModelContainer
init() throws {
container = try ModelContainer(for: CardEntity.self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment