mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-05 05:48:57 +00:00
ios: let the purchase state screen scroll, so Dismiss stays reachable at large text sizes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user