mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 20:44:38 +00:00
dcaefd6566
* mobile: onboarding * ios onboarding: create profile and make connection * how SimpleX works * connect via link * remove separate view for connecting via link, fix bugs * remove unused files * fix help on small screens, update how it works page * layout * add About to settings, tidy up * rename function * update layout * translations * translation corrections Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * correction Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * corrections Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * fix translations/layout Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
36 lines
816 B
Swift
36 lines
816 B
Swift
//
|
|
// OnboardingStepsView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by Evgeny on 07/05/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct OnboardingView: View {
|
|
var onboarding: OnboardingStage
|
|
|
|
var body: some View {
|
|
switch onboarding {
|
|
case .step1_SimpleXInfo: SimpleXInfo(onboarding: true)
|
|
case .step2_CreateProfile: CreateProfile()
|
|
case .step3_MakeConnection: MakeConnection()
|
|
case .onboardingComplete: EmptyView()
|
|
}
|
|
}
|
|
}
|
|
|
|
enum OnboardingStage {
|
|
case step1_SimpleXInfo
|
|
case step2_CreateProfile
|
|
case step3_MakeConnection
|
|
case onboardingComplete
|
|
}
|
|
|
|
struct OnboardingStepsView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
OnboardingView(onboarding: .step1_SimpleXInfo)
|
|
}
|
|
}
|