From cf84fbca5b36456ca5ec9e4e112b7d884d024f6f Mon Sep 17 00:00:00 2001 From: Sabrina Tardio <44158575+SabrinaTardio@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:53:32 +0100 Subject: [PATCH] add rollout banner (#2031) Task/Issue URL: https://app.asana.com/0/0/1206297687428377/f **Description**: Add sync rollout banner --- .../SyncUI/Sources/SyncUI/Views/ManagementView.swift | 12 ++++++++++++ .../SyncUI/Sources/SyncUI/internal/UserText.swift | 1 + 2 files changed, 13 insertions(+) diff --git a/LocalPackages/SyncUI/Sources/SyncUI/Views/ManagementView.swift b/LocalPackages/SyncUI/Sources/SyncUI/Views/ManagementView.swift index 11072dd02f..cbf452c937 100644 --- a/LocalPackages/SyncUI/Sources/SyncUI/Views/ManagementView.swift +++ b/LocalPackages/SyncUI/Sources/SyncUI/Views/ManagementView.swift @@ -38,6 +38,18 @@ public struct ManagementView: View where ViewModel: ManagementViewMod public var body: some View { VStack(alignment: .leading, spacing: 0) { VStack(alignment: .leading, spacing: 8) { + HStack(alignment: .top, spacing: 16) { + Image("Info") + .foregroundColor(Color("LinkBlueColor")) + .frame(width: 16) + .background(Circle().foregroundColor(Color(.white))) + Text(UserText.syncRollOutBannerDescription) + } + .frame(width: 493) + .padding() + .background(RoundedRectangle(cornerRadius: 8).foregroundColor(Color("OnboardingSkipButtonBaseColor"))) + .padding(.bottom, 10) + Text(UserText.sync) .font(.system(size: 17)) .bold() diff --git a/LocalPackages/SyncUI/Sources/SyncUI/internal/UserText.swift b/LocalPackages/SyncUI/Sources/SyncUI/internal/UserText.swift index ec697a6811..198394f658 100644 --- a/LocalPackages/SyncUI/Sources/SyncUI/internal/UserText.swift +++ b/LocalPackages/SyncUI/Sources/SyncUI/internal/UserText.swift @@ -61,6 +61,7 @@ enum UserText { // Sync Title static let sync = NSLocalizedString("preferences.sync", value: "Sync & Backup", comment: "Show sync preferences") + static let syncRollOutBannerDescription = NSLocalizedString("preferences.sync.rollout-banner.description", value: "Sync & Backup is rolling out gradually and may not be available yet within DuckDuckGo on your other devices.", comment: "Description of rollout banner") static let turnOff = NSLocalizedString("preferences.sync.turn-off", value: "Turn Off", comment: "Turn off sync confirmation dialog button title") static let turnOffSync = NSLocalizedString("preferences.sync.turn-off.ellipsis", value: "Turn off Sync...", comment: "Disable sync button caption")