Sync migrated iOS modules
This commit is contained in:
31
suixinkan/Features/Profile/Routing/ProfileRoute.swift
Normal file
31
suixinkan/Features/Profile/Routing/ProfileRoute.swift
Normal file
@ -0,0 +1,31 @@
|
||||
//
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user