Files
汉秋 258c438f9a 优化冷启动流程:Launch Screen 对齐 Splash,仅阻塞 rolePermissions。
移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-30 09:56:49 +08:00

47 lines
1.2 KiB
Swift
Raw Permalink 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.

//
// 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()
}