Files
suixinkan_ios_new/suixinkan/Features/Profile/Routing/ProfileRoute.swift
汉秋 607130ade0 Add album management and trailer upload to Assets module.
Wire home routing for album_list and album_trailer, add a DEBUG home menu preview in Profile, and expand Assets tests.

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
}
}
}