not use toolbar

This commit is contained in:
Diogo
2024-10-18 11:42:54 +01:00
parent 140609317a
commit caa4cd74b3
2 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ struct OnboardingView: View {
var body: some View {
switch onboarding {
case .step1_SimpleXInfo: NavigationView { SimpleXInfo(onboarding: true) }
case .step1_SimpleXInfo: SimpleXInfo(onboarding: true)
case .step2_CreateProfile: CreateFirstProfile()
case .step3_CreateSimpleXAddress: CreateSimpleXAddress()
case .step4_SetNotificationsMode: SetNotificationsMode()

View File

@@ -17,6 +17,13 @@ struct SimpleXInfo: View {
var body: some View {
GeometryReader { g in
ScrollView {
HStack {
Spacer()
InfoSheetButton {
HowItWorks(onboarding: onboarding)
}
}
.padding(.bottom, 8)
VStack(alignment: .leading) {
Image(colorScheme == .light ? "logo" : "logo-light")
.resizable()
@@ -57,13 +64,6 @@ struct SimpleXInfo: View {
}
.frame(minHeight: g.size.height)
}
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
InfoSheetButton {
HowItWorks(onboarding: onboarding)
}
}
}
.sheet(isPresented: Binding(
get: { m.migrationState != nil },
set: { _ in