You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Section(footer:Text("Send a notification to your devices when your watch is on low battery.")){
53
-
Toggle("Notify on Low Battery", isOn: $sendLowBatteryNotification)
54
-
}
55
-
if sendLowBatteryNotification {
56
-
Section(footer: watchNotifications ?nil:Text("Watch notifications are currently disabled.")){
57
-
Toggle("Send to iPhone", isOn: $sendLowBatteryNotificationToiPhone)
58
-
Toggle("Send to Watch", isOn: $sendLowBatteryNotificationToWatch)
59
-
.disabled(!watchNotifications)
52
+
Group{
53
+
Section(footer: watchNotifications ?Text("Send a notification to your devices when your watch is on low battery."):Text("Watch notifications are currently disabled.")){
54
+
Toggle("Notify on Low Battery", isOn: watchNotifications ? $sendLowBatteryNotification :.constant(false))
55
+
}
56
+
if sendLowBatteryNotification && watchNotifications {
57
+
Section{
58
+
Toggle("Send to iPhone", isOn: $sendLowBatteryNotificationToiPhone)
59
+
Toggle("Send to Watch", isOn: $sendLowBatteryNotificationToWatch)
Section(header:Text("Health"), footer:Text("Receive a reminder to drink water for the set amount of times a day.")+ Text(" You can customize this in notification settings.")){
181
186
Toggle("Water Reminder", isOn: $waterReminder)
182
187
}
188
+
Section(footer:Text("Get a notification when your heart rate goes above or below the specified range.")+ Text(" You can customize this in notification settings.")){
189
+
Toggle("Heart Range Notifications", isOn: $heartRangeReminder)
190
+
}
183
191
Section(header:Text("Daily Goals"), footer:Text("Get notified when you reach your daily fitness goals.")){
0 commit comments