onboarding wip

This commit is contained in:
spaced4ndy
2024-10-31 18:18:40 +04:00
parent a98926db60
commit cc133d6e1e
@@ -63,7 +63,7 @@ struct ChooseServerOperators: View {
selectedOperators = Set(serverOperators.filter { $0.enabled }.map { $0.operatorId })
}
.sheet(isPresented: $showInfoSheet) {
Text("Info")
ChooseServerOperatorsInfoView()
}
.sheet(item: $sheetItem, onDismiss: onConditionsSheetDismissed) { item in
switch item {
@@ -203,6 +203,28 @@ struct ChooseServerOperators: View {
}
}
struct ChooseServerOperatorsInfoView: View {
var body: some View {
VStack(alignment: .leading) {
Text("Why choose multiple operators")
.font(.largeTitle)
.padding(.vertical)
ScrollView {
VStack(alignment: .leading) {
Group {
Text("Selecting multiple operators improves protection of your communication graph.")
Text("TODO Better explanation")
}
.padding(.bottom)
}
}
}
.padding()
.frame(maxHeight: .infinity, alignment: .top)
.modifier(ThemedBackground())
}
}
#Preview {
ChooseServerOperators()
}