mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-23 05:19:42 +01:00
Fix keychain group
This commit is contained in:
parent
424cd475ad
commit
57b0b6982c
@ -19,7 +19,11 @@ struct PushNotificationsView: View {
|
|||||||
Toggle(isOn: $pushNotifications.isPushEnabled) {
|
Toggle(isOn: $pushNotifications.isPushEnabled) {
|
||||||
Text("Push notification")
|
Text("Push notification")
|
||||||
}
|
}
|
||||||
Group {
|
}
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
|
||||||
|
if pushNotifications.isPushEnabled {
|
||||||
|
Section {
|
||||||
Toggle(isOn: $pushNotifications.isFollowNotificationEnabled) {
|
Toggle(isOn: $pushNotifications.isFollowNotificationEnabled) {
|
||||||
Text("Follow notification")
|
Text("Follow notification")
|
||||||
}
|
}
|
||||||
@ -35,9 +39,10 @@ struct PushNotificationsView: View {
|
|||||||
Toggle(isOn: $pushNotifications.isPollNotificationEnabled) {
|
Toggle(isOn: $pushNotifications.isPollNotificationEnabled) {
|
||||||
Text("Polls notification")
|
Text("Polls notification")
|
||||||
}
|
}
|
||||||
}.disabled(!pushNotifications.isPushEnabled)
|
}
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
.transition(.move(edge: .bottom))
|
||||||
}
|
}
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
|
||||||
}
|
}
|
||||||
.navigationTitle("Push Notifications")
|
.navigationTitle("Push Notifications")
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
|
@ -10,7 +10,7 @@ import Network
|
|||||||
public class PushNotifications: ObservableObject {
|
public class PushNotifications: ObservableObject {
|
||||||
enum Constants {
|
enum Constants {
|
||||||
static let endpoint = "https://icecubesrelay.fly.dev"
|
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 keychainAuthKey = "notifications_auth_key"
|
||||||
static let keychainPrivateKey = "notifications_private_key"
|
static let keychainPrivateKey = "notifications_private_key"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user