From 530691b8632932462f5d109e754b225f42ad4e67 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Tue, 11 Nov 2025 17:45:01 -0800 Subject: [PATCH] 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 --- ios/Plugin/DailyNotificationModel.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/Plugin/DailyNotificationModel.swift b/ios/Plugin/DailyNotificationModel.swift index a375dcd..e96916e 100644 --- a/ios/Plugin/DailyNotificationModel.swift +++ b/ios/Plugin/DailyNotificationModel.swift @@ -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 {