Skip to content

Commit

Permalink
feat: saveContext func update to public
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeonhui committed May 23, 2023
1 parent 63f298c commit 26fec90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CoreDataStorage.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'CoreDataStorage'
s.version = '1.0.0'
s.version = '1.0.1'
s.summary = 'CoreData with Combine'

# This description is used to generate tags and improve search results.
Expand Down
10 changes: 5 additions & 5 deletions Sources/CoreDataStorage/Classes/CoreDataStroage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ public final class CoreDataStorage {
}
return container
}()

// manual Save Context
}

public extension CoreDataStorage {
/// manual Save Context
func saveContext() {
let context = persistentContainer.viewContext
if context.hasChanges {
Expand All @@ -51,9 +53,7 @@ public final class CoreDataStorage {
}
}
}
}

public extension CoreDataStorage {

/// Create
/// - Parameter value: Struct: Entitable
/// - Returns: created Entity into Struct
Expand Down

0 comments on commit 26fec90

Please sign in to comment.