Skip to content

Commit 5b903f4

Browse files
committed
Add link to Dexcom app in G7 settings
I found myself missing the 'Open app' button from the G6, and that my muscle memory kept expecting it to be there, so in this PR I've added it into the G7 management screen. I opted to create a new section rather than include it with the other management buttons beneath to try to prevent users accidentally tapping the more destructive actions.
1 parent 83d8aaf commit 5b903f4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

G7SensorKitUI/Views/G7SettingsView.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ struct G7SettingsView: View {
123123
Toggle(LocalizedString("Upload Readings", comment: "title for g7 config settings to upload readings"), isOn: $viewModel.uploadReadings)
124124
}
125125
}
126+
127+
Section () {
128+
Button(LocalizedString("Open Dexcom App", comment:"Opens the dexcom G7 app to allow users to manage active sensors"), action: {
129+
if let appURL = URL(string: "dexcomg7://") {
130+
UIApplication.shared.open(appURL)
131+
}
132+
})
133+
}
126134

127135
Section () {
128136
if !self.viewModel.scanning {

0 commit comments

Comments
 (0)