Fix keychain group

This commit is contained in:
Thomas Ricouard 2023-01-08 10:57:58 +01:00
parent 424cd475ad
commit 57b0b6982c
2 changed files with 9 additions and 4 deletions

View File

@ -19,7 +19,11 @@ struct PushNotificationsView: View {
Toggle(isOn: $pushNotifications.isPushEnabled) {
Text("Push notification")
}
Group {
}
.listRowBackground(theme.primaryBackgroundColor)
if pushNotifications.isPushEnabled {
Section {
Toggle(isOn: $pushNotifications.isFollowNotificationEnabled) {
Text("Follow notification")
}
@ -35,9 +39,10 @@ struct PushNotificationsView: View {
Toggle(isOn: $pushNotifications.isPollNotificationEnabled) {
Text("Polls notification")
}
}.disabled(!pushNotifications.isPushEnabled)
}
.listRowBackground(theme.primaryBackgroundColor)
.transition(.move(edge: .bottom))
}
.listRowBackground(theme.primaryBackgroundColor)
}
.navigationTitle("Push Notifications")
.scrollContentBackground(.hidden)

View File

@ -10,7 +10,7 @@ import Network
public class PushNotifications: ObservableObject {
enum Constants {
static let endpoint = "https://icecubesrelay.fly.dev"
static let keychainGroup = "Z6P74P6T99.com.thomasricouard.IceCubesApp"
static let keychainGroup = "346J38YKE3.com.thomasricouard.IceCubesApp"
static let keychainAuthKey = "notifications_auth_key"
static let keychainPrivateKey = "notifications_private_key"
}