From e7a1f0d04eedc0afb111ed5155005bbf93583819 Mon Sep 17 00:00:00 2001 From: Min Hyun Date: Fri, 1 Sep 2023 11:55:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=BB=A8=EB=B2=A4=EC=85=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .swiftlint.yml | 2 + Diary+CoreDataClass.swift | 2 +- Diary+CoreDataProperties.swift | 7 +- .../xcshareddata/xcschemes/Diary.xcscheme | 77 +++++++++++++++++++ Diary/DataManager/CoreDataManager.swift | 2 +- 5 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 Diary.xcodeproj/xcshareddata/xcschemes/Diary.xcscheme 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)") }