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
.navigationTitle(NSLocalizedString("Alert Management", comment:"Title of alert management screen"))
74
74
}
75
+
76
+
privatevarfooterView:someView{
77
+
VStack(alignment:.leading, spacing:24){
78
+
HStack(alignment:.top, spacing:8){
79
+
Image("phone")
80
+
.resizable()
81
+
.aspectRatio(contentMode:.fit)
82
+
.frame(maxWidth:64, maxHeight:64)
83
+
84
+
VStack(alignment:.leading, spacing:4){
85
+
Text(
86
+
String(
87
+
format:NSLocalizedString(
88
+
"%1$@ APP SOUNDS",
89
+
comment:"App sounds title text (1: app name)"
90
+
),
91
+
appName.uppercased()
92
+
)
93
+
)
94
+
95
+
Text(
96
+
String(
97
+
format:NSLocalizedString(
98
+
"While mute alerts is on, all alerts from your %1$@ app including Critical and Time Sensitive alerts will temporarily display without sounds and will vibrate only.",
99
+
comment:"App sounds descriptive text (1: app name)"
100
+
),
101
+
appName
102
+
)
103
+
)
104
+
}
105
+
}
106
+
107
+
HStack(alignment:.top, spacing:8){
108
+
Image("hardware")
109
+
.resizable()
110
+
.aspectRatio(contentMode:.fit)
111
+
.frame(maxWidth:64, maxHeight:64)
112
+
113
+
VStack(alignment:.leading, spacing:4){
114
+
Text("HARDWARE SOUNDS")
115
+
116
+
Text("While mute alerts is on, your insulin pump and CGM hardware may still sound.")
117
+
}
118
+
}
119
+
120
+
HStack(alignment:.top, spacing:8){
121
+
Image(systemName:"moon.fill")
122
+
.resizable()
123
+
.aspectRatio(contentMode:.fit)
124
+
.frame(maxWidth:64, maxHeight:48)
125
+
.foregroundColor(.accentColor)
126
+
127
+
VStack(alignment:.leading, spacing:4){
128
+
Text("IOS FOCUS MODES")
129
+
130
+
Text(
131
+
String(
132
+
format:NSLocalizedString(
133
+
"If iOS Focus Mode is ON and Mute Alerts is OFF, Critical Alerts will still be delivered and non-Critical Alerts will be silenced until %1$@ is added to each Focus mode as an Allowed App.",
134
+
comment:"Focus modes descriptive text (1: app name)"
135
+
),
136
+
appName
137
+
)
138
+
)
139
+
}
140
+
}
141
+
}
142
+
.padding(.top)
143
+
}
75
144
76
145
privatevaralertPermissionsSection:someView{
77
146
Section(footer:DescriptiveText(label:String(format:NSLocalizedString("Notifications give you important %1$@ app information without requiring you to open the app.", comment:"Alert Permissions descriptive text (1: app name)"), appName))){
Section(footer:DescriptiveText(label:String(format:NSLocalizedString("When muted, %1$@ alerts will temporarily display without sounds and will vibrate only. Once the mute period ends, your alerts will resume as normal.", comment:"Description of temporary mute alerts (1: app name)"), appName))){
Text(String(format:NSLocalizedString("%1$@ Mute Alerts", comment:"Format string for Section title for description that mute alerts is temporary (1: app name)"), appName))
37
-
.bold()
38
-
.fixedSize(horizontal:false, vertical:true)
44
+
VStack(alignment:.leading, spacing:4){
45
+
Text("Time Sensitive Alerts")
46
+
.bold()
47
+
48
+
Text("High Glucose")
49
+
.bulleted()
50
+
Text("Transmitter Low Battery")
51
+
.bulleted()
52
+
}
39
53
}
40
54
41
-
Text(NSLocalizedString("""
42
-
All Tidepool Loop alerts, including Critical Alerts, will be silenced for up to 4 hours.
43
-
44
-
After the mute period ends, your alert sounds will resume.
45
-
""", comment:"Description that mute alerts is temporary"))
46
-
.fixedSize(horizontal:false, vertical:true)
47
-
.padding(.bottom)
48
-
49
-
HStack(spacing:10){
50
-
Image(systemName:"moon.fill")
51
-
.foregroundColor(.accentColor)
52
-
53
-
Text(NSLocalizedString("iOS Focus Mode", comment:"Section title for description of how mute alerts work with focus mode"))
54
-
.bold()
55
-
}
56
-
Text(String(format:NSLocalizedString("If iOS Focus Mode is ON and Mute Alerts is OFF, Critical Alerts will still be delivered, but non-Critical Alerts will be silenced until %1$@ is added to each Focus mode as an Allowed App.", comment:"Format string for description of how mute alerts works with focus mode (1: app name)"), appName))
"How can I temporarily silence all %1$@ app sounds?",
71
+
comment:"Title text for temporarily silencing all sounds (1: app name)"
72
+
),
73
+
appName
74
+
)
75
+
)
76
+
.bold()
77
+
78
+
Text(
79
+
String(
80
+
format:NSLocalizedString(
81
+
"Use the Mute Alerts feature. It allows you to temporarily silence all of your alerts and alarms via the %1$@ app, including Critical Alerts and Time Sensitive Alerts.",
82
+
comment:"Description text for temporarily silencing all sounds (1: app name)"
83
+
),
84
+
appName
85
+
)
86
+
)
87
+
}
88
+
89
+
VStack(alignment:.leading, spacing:8){
90
+
Text("How can I silence non-Critical Alerts?")
91
+
.bold()
92
+
93
+
Text(
94
+
String(
95
+
format:NSLocalizedString(
96
+
"Turn off the volume on your iOS device or add %1$@ as an allowed app to each Focus Mode. Time Sensitive and Critical Alerts will still sound, but non-Critical Alerts will be silenced.",
97
+
comment:"Description text for temporarily silencing non-critical alerts (1: app name)"
98
+
),
99
+
appName
100
+
)
101
+
)
102
+
}
103
+
104
+
VStack(alignment:.leading, spacing:8){
105
+
Text("How can I silence only Time Sensitive and Non-Critical alerts?")
106
+
.bold()
107
+
108
+
Text(
109
+
String(
110
+
format:NSLocalizedString(
111
+
"For safety purposes, you should allow Critical Alerts, Time Sensitive and Notification Permissions (non-critical alerts) on your device to continue using %1$@ and cannot turn off individual alarms.",
112
+
comment:"Description text for silencing time sensitive and non-critical alerts (1: app name)"
113
+
),
114
+
appName
115
+
)
116
+
)
117
+
}
62
118
}
119
+
.padding(.vertical,8)
63
120
}
64
121
.insetGroupedListStyle()
65
-
.navigationTitle(NSLocalizedString("Using Mute Alerts", comment:"View title for how mute alerts work"))
122
+
.navigationTitle(NSLocalizedString("Managing Alerts", comment:"View title for how mute alerts work"))
66
123
.navigationBarItems(trailing: closeButton)
67
124
}
68
125
}
@@ -74,6 +131,19 @@ After the mute period ends, your alert sounds will resume.
0 commit comments