diff --git a/.swiftlint.yml b/.swiftlint.yml index 18ab66e0b..dd5334923 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -5,3 +5,5 @@ excluded: - Pods - Diary/App/AppDelegate.swift - Diary/App/SceneDelegate.swift +- Diary/Model/Diary+CoreDataClass.swift +- Diary/Model/Diary+CoreDataProperties.swift diff --git a/Diary+CoreDataClass.swift b/Diary+CoreDataClass.swift index 4164fcfae..ec6efb38e 100644 --- a/Diary+CoreDataClass.swift +++ b/Diary+CoreDataClass.swift @@ -2,7 +2,7 @@ // Diary+CoreDataClass.swift // Diary // -// Created by 1 on 2023/09/01. +// Created by Max, Hemg on 2023/09/01. // // diff --git a/Diary+CoreDataProperties.swift b/Diary+CoreDataProperties.swift index a20279692..d526caf6a 100644 --- a/Diary+CoreDataProperties.swift +++ b/Diary+CoreDataProperties.swift @@ -2,14 +2,13 @@ // Diary+CoreDataProperties.swift // Diary // -// Created by 1 on 2023/09/01. +// Created by Max, Hemg on 2023/09/01. // // import Foundation import CoreData - extension Diary { @nonobjc public class func fetchRequest() -> NSFetchRequest { @@ -23,6 +22,4 @@ extension Diary { } -extension Diary : Identifiable { - -} +extension Diary: Identifiable {} diff --git a/Diary.xcodeproj/xcshareddata/xcschemes/Diary.xcscheme b/Diary.xcodeproj/xcshareddata/xcschemes/Diary.xcscheme new file mode 100644 index 000000000..90943b4f2 --- /dev/null +++ b/Diary.xcodeproj/xcshareddata/xcschemes/Diary.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Diary/DataManager/CoreDataManager.swift b/Diary/DataManager/CoreDataManager.swift index b493a0476..20020d2fe 100644 --- a/Diary/DataManager/CoreDataManager.swift +++ b/Diary/DataManager/CoreDataManager.swift @@ -15,7 +15,7 @@ class CoreDataManager { // MARK: - Core Data stack lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: "Diary") - container.loadPersistentStores(completionHandler: { (storeDescription, error) in + container.loadPersistentStores(completionHandler: { (_, error) in if let error = error as NSError? { fatalError("Unresolved error \(error), \(error.userInfo)") }