移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。 Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
1.2 KiB
Swift
47 lines
1.2 KiB
Swift
//
|
||
// SplashView.swift
|
||
// suixinkan
|
||
//
|
||
// Created by Codex on 2026/6/29.
|
||
//
|
||
|
||
import SwiftUI
|
||
|
||
/// 启动页视图,在冷启动恢复登录态期间展示,与 Launch Screen 保持相同品牌布局。
|
||
struct SplashView: View {
|
||
var body: some View {
|
||
ZStack {
|
||
Color.white
|
||
.ignoresSafeArea()
|
||
|
||
VStack(spacing: 0) {
|
||
Spacer()
|
||
|
||
Image("SplashLogo")
|
||
.resizable()
|
||
.scaledToFit()
|
||
.frame(width: 180, height: 180)
|
||
.accessibilityIdentifier("splash.logo")
|
||
|
||
Text("随心瞰")
|
||
.font(SplashTypography.titleFont)
|
||
.foregroundStyle(AppDesign.primary)
|
||
.accessibilityIdentifier("splash.title")
|
||
|
||
Spacer()
|
||
|
||
Text("商家版")
|
||
.font(SplashTypography.subtitleFont)
|
||
.foregroundStyle(AppDesign.primary)
|
||
.padding(.bottom, 32)
|
||
.accessibilityIdentifier("splash.subtitle")
|
||
}
|
||
}
|
||
.accessibilityIdentifier("splash.root")
|
||
}
|
||
}
|
||
|
||
#Preview {
|
||
SplashView()
|
||
}
|