fix(ios): make PersistenceController public for build access

Fixed build error: 'cannot find PersistenceController in scope'

Changes:
- Made PersistenceController class public
- Made shared static property public
- Made container property public
- Made init method public

This allows DailyNotificationPlugin to access PersistenceController
across module boundaries. CocoaPods pod install was required to
regenerate project files with updated access modifiers.

Result: iOS plugin now builds successfully
This commit is contained in:
Matthew Raymer
2025-11-11 17:45:01 -08:00
parent 04602de973
commit 530691b863

View File

@@ -115,12 +115,12 @@ extension History: Identifiable {
}
// MARK: - Persistence Controller
class PersistenceController {
static let shared = PersistenceController()
public class PersistenceController {
public static let shared = PersistenceController()
let container: NSPersistentContainer
public let container: NSPersistentContainer
init(inMemory: Bool = false) {
public init(inMemory: Bool = false) {
container = NSPersistentContainer(name: "DailyNotificationModel")
if inMemory {