Files
suixinkan_ios_new/suixinkan/Features/Profile/Routing/ProfileRoute.swift
2026-06-22 15:35:12 +08:00

32 lines
726 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ProfileRoute.swift
// suixinkan
//
// Created by Codex on 2026/6/22.
//
import SwiftUI
/// Tab push
enum ProfileRoute: Hashable {
case accountSwitch
case realNameAuth
case settings
case agreement(AgreementPage)
/// SwiftUI
@ViewBuilder
var destinationView: some View {
switch self {
case .accountSwitch:
AccountSwitchView()
case .realNameAuth:
RealNameAuthView()
case .settings:
SettingsCenterView()
case .agreement(let page):
AgreementView(page: page)
}
}
}