From abad4dc59064c0bce701be7befe67f352b865f4e Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:49:38 +0400 Subject: [PATCH] banner wip --- apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift b/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift index 6966bdc975..f5fc692b00 100644 --- a/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift +++ b/apps/ios/Shared/Views/Badges/SupportSimpleXBanner.swift @@ -123,16 +123,11 @@ struct SupportSimpleXBanner: View { } private func gradientBackground() -> some View { - // Same endpoint COLORS as ConnectBannerCard ("New 1-time link" / "Paste link / Scan") - // — first and last stops only. OnboardingCardView.lightStops has an intermediate blue - // plateau (0.0–0.5) that made this wide-short banner read as almost entirely blue with - // white only in the last ~10%. Using just the extremes gives a smooth transition - // across the whole axis. .leading → .trailing keeps it fully horizontal. let stops = colorScheme == .light ? OnboardingCardView.lightStops : OnboardingCardView.darkStops return LinearGradient( colors: [stops.first!.color, stops.last!.color], - startPoint: .leading, - endPoint: .trailing + startPoint: .bottomLeading, + endPoint: .topTrailing ) } }