Skip to content

Commit 1a0e81c

Browse files
authored
Merge pull request #21 from JamieKeene/main
Add link to Dexcom app in G7 settings
2 parents 83d8aaf + 5b903f4 commit 1a0e81c

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)