Skip to content

Commit 29ec310

Browse files
committed
update text to use appName instead of Loop
1 parent 85b1dd0 commit 29ec310

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

G7SensorKitUI/Views/G7StartupView.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ struct G7StartupView: View {
1313
var didContinue: (() -> Void)?
1414
var didCancel: (() -> Void)?
1515

16+
@Environment(\.appName) private var appName
17+
1618
var body: some View {
1719
VStack(alignment: .center, spacing: 20) {
1820
Spacer()
@@ -26,7 +28,7 @@ struct G7StartupView: View {
2628
.frame(height: 120)
2729
.padding(.horizontal)
2830
}.frame(maxWidth: .infinity)
29-
Text(LocalizedString("This app can read G7 CGM data, but you must still use the Dexcom G7 App for pairing, calibration, and other sensor management.", comment: "Descriptive text on G7StartupView"))
31+
Text(String(format: LocalizedString("%1$@ can read G7 CGM data, but you must still use the Dexcom G7 App for pairing, calibration, and other sensor management.", comment: "Descriptive text on G7StartupView (1: appName)"), self.appName))
3032
.fixedSize(horizontal: false, vertical: true)
3133
.foregroundColor(.secondary)
3234
Spacer()

0 commit comments

Comments
 (0)