Skip to content

Commit

Permalink
refactor: 컨벤션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhyunm committed Sep 1, 2023
1 parent 33cd723 commit e7a1f0d
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ excluded:
- Pods
- Diary/App/AppDelegate.swift
- Diary/App/SceneDelegate.swift
- Diary/Model/Diary+CoreDataClass.swift
- Diary/Model/Diary+CoreDataProperties.swift
2 changes: 1 addition & 1 deletion Diary+CoreDataClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Diary+CoreDataClass.swift
// Diary
//
// Created by 1 on 2023/09/01.
// Created by Max, Hemg on 2023/09/01.
//
//

Expand Down
7 changes: 2 additions & 5 deletions Diary+CoreDataProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Diary> {
Expand All @@ -23,6 +22,4 @@ extension Diary {

}

extension Diary : Identifiable {

}
extension Diary: Identifiable {}
77 changes: 77 additions & 0 deletions Diary.xcodeproj/xcshareddata/xcschemes/Diary.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C739AE20284DF28600741E8F"
BuildableName = "Diary.app"
BlueprintName = "Diary"
ReferencedContainer = "container:Diary.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C739AE20284DF28600741E8F"
BuildableName = "Diary.app"
BlueprintName = "Diary"
ReferencedContainer = "container:Diary.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C739AE20284DF28600741E8F"
BuildableName = "Diary.app"
BlueprintName = "Diary"
ReferencedContainer = "container:Diary.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion Diary/DataManager/CoreDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
Expand Down

0 comments on commit e7a1f0d

Please sign in to comment.