Skip to content

Commit

Permalink
Make accountKeys optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Sep 15, 2024
1 parent 8150ad5 commit 513edf8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ENGAGEHF/SharedExtensions/AccountDetails+Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import SpeziAccount

// swiftlint:disable attributes
// swiftlint:disable attributes discouraged_optional_boolean

extension AccountDetails {
@AccountKey(
Expand Down Expand Up @@ -37,7 +37,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesAppointmentReminders: Bool
var receivesAppointmentReminders: Bool?

@AccountKey(
id: "receivesInactivityReminders",
Expand All @@ -46,7 +46,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesInactivityReminders: Bool
var receivesInactivityReminders: Bool?

@AccountKey(
id: "receivesMedicationUpdates",
Expand All @@ -55,7 +55,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesMedicationUpdates: Bool
var receivesMedicationUpdates: Bool?

@AccountKey(
id: "receivesQuestionnaireReminders",
Expand All @@ -64,7 +64,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesQuestionnaireReminders: Bool
var receivesQuestionnaireReminders: Bool?

@AccountKey(
id: "receivesRecommendationUpdates",
Expand All @@ -73,7 +73,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesRecommendationUpdates: Bool
var receivesRecommendationUpdates: Bool?

@AccountKey(
id: "receivesVitalsReminders",
Expand All @@ -82,7 +82,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesVitalsReminders: Bool
var receivesVitalsReminders: Bool?

@AccountKey(
id: "receivesWeightAlerts",
Expand All @@ -91,7 +91,7 @@ extension AccountDetails {
as: Bool.self,
initial: .default(true)
)
var receivesWeightAlerts: Bool
var receivesWeightAlerts: Bool?
}

@KeyEntry(\.invitationCode)
Expand Down

0 comments on commit 513edf8

Please sign in to comment.