Fix keychain group
This commit is contained in:
parent
424cd475ad
commit
57b0b6982c
|
@ -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))
|
||||
}
|
||||
}
|
||||
.navigationTitle("Push Notifications")
|
||||
.scrollContentBackground(.hidden)
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue