adjustment on layout in landing screen

This commit is contained in:
Ryan Zhao 2023-08-24 16:31:26 +10:00
parent 8eb12b7bdc
commit 62fcc191fd
1 changed files with 10 additions and 7 deletions

View File

@ -22,18 +22,21 @@ struct LandingView: View {
VStack(
alignment: .center,
spacing: Values.mediumSpacing
spacing: 0
) {
Spacer()
Spacer(minLength: 0)
Text("onboarding_landing_title".localized())
.bold()
.font(.system(size: Values.veryLargeFontSize))
.foregroundColor(themeColor: .textPrimary)
.padding(.vertical, Values.mediumSpacing)
.padding(.bottom, Values.largeSpacing)
FakeChat($numberOfBubblesShown)
.padding(.bottom, Values.mediumSpacing)
.onAppear {
guard numberOfBubblesShown < 4 else { return }
Timer.scheduledTimerOnMainThread(withTimeInterval: 0.2, repeats: false) { _ in
withAnimation(.spring().speed(0.68)) {
numberOfBubblesShown = 1
@ -49,15 +52,15 @@ struct LandingView: View {
}
}
Spacer()
Spacer(minLength: 0)
}
.padding(.vertical, Values.mediumSpacing)
.padding(.bottom, Values.massiveSpacing + 3 * Values.largeButtonHeight)
.padding(.bottom, 3 * Values.largeButtonHeight)
VStack(
alignment: .center,
spacing: Values.mediumSpacing)
{
spacing: Values.mediumSpacing
) {
Spacer()
Button {