Skip to content

Instantly share code, notes, and snippets.

waiting for Xcode to index

Julian Schmid KingNexu

waiting for Xcode to index
  • Neumann & Neumann Software und Beratungs GmbH
  • Germany, Bavaria
  • Twitter @devjulianschmid
View GitHub Profile
KingNexu / CoreDataManagerInit.swift
Last active December 6, 2021 06:44
[CoreData] #CoreData #SwiftUI #iOS
View CoreDataManagerInit.swift
import Foundation
import CoreData
final calss CoreDataManger {
let persistentContainer: NSPersistentContainer
init() {
///To Initialize persistent container you have to pass in the file name of the model
persistentContainer = NSPersistentContainer(name: "HelloCoreDataModel")