Files
suixinkan_ios_new/suixinkan/Features/Profile/Routing/ProfileRoute.swift
汉秋 ae0bc116d8 为资产模块新增相册管理与片花上传
为 album_list 与 album_trailer 接入首页路由,在 Profile 中新增 DEBUG 首页菜单预览,并扩展 Assets 测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 09:43:46 +08:00

39 lines
877 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)
#if DEBUG
case debugHomeMenus
#endif
/// SwiftUI
@ViewBuilder
var destinationView: some View {
switch self {
case .accountSwitch:
AccountSwitchView()
case .realNameAuth:
RealNameAuthView()
case .settings:
SettingsCenterView()
case .agreement(let page):
AgreementView(page: page)
#if DEBUG
case .debugHomeMenus:
DebugHomeMenuPreviewView()
#endif
}
}
}