From db8755ec8d0cecbb22117c92608ef7628bcd2996 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Fri, 2 Oct 2026 18:32:51 +0400 Subject: [PATCH] ios: let the purchase state screen scroll, so Dismiss stays reachable at large text sizes --- .../Badges/BadgesPurchaseStateView.swift | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/apps/ios/Shared/Views/Badges/BadgesPurchaseStateView.swift b/apps/ios/Shared/Views/Badges/BadgesPurchaseStateView.swift index a15f387e32..bb9600651a 100644 --- a/apps/ios/Shared/Views/Badges/BadgesPurchaseStateView.swift +++ b/apps/ios/Shared/Views/Badges/BadgesPurchaseStateView.swift @@ -15,6 +15,20 @@ struct BadgesPurchaseStateView: View { var showsAsSheet: Bool = false var body: some View { + GeometryReader { g in + ScrollView { + content + .padding(.horizontal, 25) + .padding(.top, showsAsSheet ? 48 : 0) + .padding(.bottom, 20) + .frame(minHeight: g.size.height) + } + } + .frame(maxHeight: .infinity) + .navigationBarTitleDisplayMode(.inline) + } + + private var content: some View { VStack(alignment: .center, spacing: 16) { Text(title) .font(.largeTitle) @@ -49,11 +63,6 @@ struct BadgesPurchaseStateView: View { .frame(height: 22) } } - .padding(.horizontal, 25) - .padding(.top, showsAsSheet ? 48 : 0) - .padding(.bottom, 20) - .frame(maxHeight: .infinity) - .navigationBarTitleDisplayMode(.inline) } private var title: LocalizedStringKey {