From 511ba2b23636d6647f89006df9d7d9012c9790ea Mon Sep 17 00:00:00 2001 From: Cesar de la Vega Date: Mon, 26 Aug 2024 19:28:23 +0200 Subject: [PATCH] [Customer Center] Add padding to `No thanks` in promotional offer screen (#4221) | Before | After | |--------|--------| | ![simulator_screenshot_1D4B17FD-B4FE-4F00-BC80-B9A2428EA757](https://github.com/user-attachments/assets/420291bc-45cf-4d91-9dc7-82fdca13c733) | ![simulator_screenshot_4B84F02B-2296-47A9-B5B1-2649A0778289](https://github.com/user-attachments/assets/5cd2c5e3-dc7b-476d-9d6b-49e89b010600) | --- .../CustomerCenter/Views/PromotionalOfferView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/RevenueCatUI/CustomerCenter/Views/PromotionalOfferView.swift b/RevenueCatUI/CustomerCenter/Views/PromotionalOfferView.swift index 6c49ac6b03..aa52e1c061 100644 --- a/RevenueCatUI/CustomerCenter/Views/PromotionalOfferView.swift +++ b/RevenueCatUI/CustomerCenter/Views/PromotionalOfferView.swift @@ -62,10 +62,13 @@ struct PromotionalOfferView: View { PromoOfferButtonView(viewModel: self.viewModel, appearance: self.appearance) - let dismissButtonTitle = self.localization.commonLocalizedString(for: .noThanks) - Button(dismissButtonTitle) { + Button { dismiss() + } label: { + Text(self.localization.commonLocalizedString(for: .noThanks)) } + .padding() + .frame(maxWidth: .infinity) } else { EmptyView() .onAppear {