Skip to content

Commit 79adfea

Browse files
authored
Updates to wording and layout tweak for Required Software Update (#927)
* Updates to wording and layout tweak for Required Software Update * Tweaks
1 parent 642d5a2 commit 79adfea

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Loop/Views/RequiredVersionUpdateView.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,27 @@ struct RequiredVersionUpdateView: View {
1919
VStack(spacing: 16) {
2020
Image(systemName: "exclamationmark.triangle.fill")
2121
.font(.system(size: 40))
22-
.foregroundColor(.red)
22+
.foregroundColor(.critical)
2323
.padding(.top, 8)
2424

2525
Text(String(format: NSLocalizedString("Required %1$@ App Update", comment: "Title for required version update modal (1: app name)"), appName))
2626
.font(.headline)
2727
.multilineTextAlignment(.center)
2828

2929
VStack(spacing: 12) {
30-
Text(String(format: NSLocalizedString("A critical issue has been discovered in this version of %1$@.", comment: "Required update modal paragraph 1 (1: app name)"), appName))
31-
Text(String(format: NSLocalizedString("Until you update the app, you will not be able to use %1$@.", comment: "Required update modal paragraph 2 (1: app name)"), appName))
32-
Text(NSLocalizedString("Please go to the App Store to install the latest version.", comment: "Required update modal paragraph 3"))
30+
Text(String(format: NSLocalizedString("A critical issue has been discovered in this version of %1$@. To continue using the app, you must update to the latest version.", comment: "Required update modal paragraph 1 (1: app name)"), appName))
31+
Text(String(format: NSLocalizedString("You will continue to receive your scheduled basal rate, but %1$@ will not make automated adjustments.", comment: "Required update modal paragraph 2 (1: app name)"), appName))
32+
Text(NSLocalizedString("Please go to the App Store now to update the app.", comment: "Required update modal paragraph 3"))
3333
}
3434
.font(.subheadline)
3535
.multilineTextAlignment(.center)
36-
.foregroundColor(.secondary)
3736

3837
Divider()
38+
.padding(.horizontal, -40)
3939

4040
Button(action: openAppStore) {
4141
Text(NSLocalizedString("App Store", comment: "Button title to open the App Store for a required update"))
42+
.font(.title3)
4243
.fontWeight(.semibold)
4344
}
4445
.padding(.bottom, 8)

Loop/Views/SettingsView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,11 @@ extension SettingsView {
265265
private var softwareUpdateSection: some View {
266266
Section(footer: Text(viewModel.versionUpdateViewModel.footer(appName: appName))) {
267267
NavigationLink(destination: viewModel.versionUpdateViewModel.softwareUpdateView) {
268-
viewModel.versionUpdateViewModel.icon
269-
Text(NSLocalizedString("Software Update", comment: "Software update button link text"))
268+
HStack {
269+
Text(NSLocalizedString("Software Update", comment: "Software update button link text"))
270+
Spacer()
271+
viewModel.versionUpdateViewModel.icon
272+
}
270273
}
271274
}
272275
}

0 commit comments

Comments
 (0)