68 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Swift
		
	
	
	
	
	
//
 | 
						|
//  AfterRegisterView.swift
 | 
						|
//  yobble
 | 
						|
//
 | 
						|
//  Created by cheykrym on 24.10.2025.
 | 
						|
//
 | 
						|
 | 
						|
import SwiftUI
 | 
						|
 | 
						|
struct AfterRegisterView: View {
 | 
						|
    @Binding var isPresented: Bool
 | 
						|
    @State private var isTwoFactorActive = false
 | 
						|
    @State private var isEmailSettingsActive = false
 | 
						|
    @State private var isAppLockActive = false
 | 
						|
 | 
						|
    var body: some View {
 | 
						|
        NavigationView {
 | 
						|
            VStack {
 | 
						|
                Text("After Register View")
 | 
						|
                
 | 
						|
                Section(header: Text(NSLocalizedString("Вход и защита аккаунта (заглушка)", comment: "Раздел настроек безопасности для аутентификации"))) {
 | 
						|
                    NavigationLink(isActive: $isTwoFactorActive) {
 | 
						|
                        TwoFactorAuthView()
 | 
						|
                    } label: {
 | 
						|
                        Label(NSLocalizedString("Двухфакторная аутентификация", comment: "Переход к настройкам двухфакторной аутентификации"), systemImage: "lock.shield")
 | 
						|
                    }
 | 
						|
                    
 | 
						|
                    NavigationLink(isActive: $isEmailSettingsActive) {
 | 
						|
                        EmailSecuritySettingsView()
 | 
						|
                    } label: {
 | 
						|
                        Label(NSLocalizedString("Настройки email", comment: "Переход к настройкам безопасности email"), systemImage: "envelope")
 | 
						|
                    }
 | 
						|
                    
 | 
						|
                    NavigationLink(isActive: $isAppLockActive) {
 | 
						|
                        AppLockSettingsView()
 | 
						|
                    } label: {
 | 
						|
                        Label(NSLocalizedString("Пароль на приложение", comment: "Переход к настройкам пароля на приложение"), systemImage: "lock.square")
 | 
						|
                    }
 | 
						|
                    
 | 
						|
                    NavigationLink(destination: EditProfileView()) {
 | 
						|
                        Label(NSLocalizedString("Редактировать профиль", comment: ""), systemImage: "person.crop.circle")
 | 
						|
                    }
 | 
						|
                    
 | 
						|
                    NavigationLink(destination: EditPrivacyView()) {
 | 
						|
                        Label(NSLocalizedString("Конфиденциальность", comment: ""), systemImage: "lock.fill")
 | 
						|
                    }
 | 
						|
                }
 | 
						|
                    
 | 
						|
                
 | 
						|
            }
 | 
						|
            .navigationTitle("Welcome")
 | 
						|
            .toolbar {
 | 
						|
                ToolbarItem(placement: .navigationBarLeading) {
 | 
						|
                    Button("Close") {
 | 
						|
                        isPresented = false
 | 
						|
                    }
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
struct AfterRegisterView_Previews: PreviewProvider {
 | 
						|
    static var previews: some View {
 | 
						|
        AfterRegisterView(isPresented: .constant(true))
 | 
						|
    }
 | 
						|
}
 |