fix: use AppGroupStore setter methods from keyboard extension

AppGroupStore is a struct; property setters are mutating and cannot
be called on a let binding. Add setOnboardingPage and
setHasCompletedOnboarding helpers (like setDetectedAppContext).

Co-authored-by: Rocky <hkgood@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-03 08:17:55 +00:00
parent 8398e43332
commit 87708e7976
2 changed files with 12 additions and 4 deletions
@@ -293,6 +293,14 @@ public struct AppGroupStore: @unchecked Sendable {
set { defaults.set(newValue, forKey: "config.onboardingPage") }
}
public func setHasCompletedOnboarding(_ completed: Bool) {
defaults.set(completed, forKey: "config.hasCompletedOnboarding")
}
public func setOnboardingPage(_ page: Int) {
defaults.set(page, forKey: "config.onboardingPage")
}
// MARK: - Detected app context (v0.3.0+)
/// Last app context the keyboard extension detected for this