Add Terms & Privacy Policy link to backups subscription screen

This commit is contained in:
Pete Walters 2025-10-28 17:37:46 -05:00 committed by GitHub
parent 564f0d6868
commit b7addedac3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 2 deletions

View File

@ -316,6 +316,10 @@ struct ChooseBackupPlanView: View {
)
}
.padding(.horizontal, 16)
Spacer().frame(height: 16)
termsAndConditionsLink()
} pinnedFooter: {
Button {
viewModel.confirmSelection()
@ -356,6 +360,24 @@ struct ChooseBackupPlanView: View {
.multilineTextAlignment(.center)
.background(Color.Signal.groupedBackground)
}
private func termsAndConditionsLink() -> some View {
let label = OWSLocalizedString(
"CHOOSE_BACKUP_PLAN_TERM_AND_PRIVACY_POLICY_TEXT",
comment: "Title for a label allowing users to view Signal's Terms & Conditions."
)
return Text(" [\(label)](https://support.signal.org/)")
.font(.subheadline.weight(.bold))
.environment(\.openURL, OpenURLAction { _ in
CurrentAppContext().open(
TSConstants.legalTermsUrl,
completion: nil
)
return .handled
})
.foregroundStyle(Color.Signal.secondaryLabel)
.tint(Color.Signal.secondaryLabel)
}
}
// MARK: -

View File

@ -1667,10 +1667,13 @@
"CHOOSE_BACKUP_PLAN_SUBSCRIBE_PAID_BUTTON_TEXT" = "Subscribe for %1$@/month";
/* Subtitle for a view allowing users to choose a Backup plan. */
"CHOOSE_BACKUP_PLAN_SUBTITLE" = "All backups are end-to-end encrypted. Signal is a non-profit — paying for backups helps support our mission.";
"CHOOSE_BACKUP_PLAN_SUBTITLE" = "Backups are end-to-end encrypted. Signal is a non profit. Paying for backups helps support us.";
/* Title for a label allowing users to view Signal's Terms & Conditions. */
"CHOOSE_BACKUP_PLAN_TERM_AND_PRIVACY_POLICY_TEXT" = "Terms & Privacy Policy";
/* Title for a view allowing users to choose a Backup plan. */
"CHOOSE_BACKUP_PLAN_TITLE" = "Choose Your Backup Plan";
"CHOOSE_BACKUP_PLAN_TITLE" = "Choose Backup Plan";
/* Title for the color & wallpaper settings view. */
"COLOR_AND_WALLPAPER_SETTINGS_TITLE" = "Chat Color & Wallpaper";