优化冷启动流程:Launch Screen 对齐 Splash,仅阻塞 rolePermissions。

移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-30 09:56:49 +08:00
parent d2fe5d71e4
commit 258c438f9a
15 changed files with 545 additions and 223 deletions

View File

@ -0,0 +1,37 @@
//
// SplashTypography.swift
// suixinkan
//
// Created by Codex on 2026/6/30.
//
import SwiftUI
import UIKit
/// `SplashView` `Launch Screen.storyboard`
enum SplashTypography {
///
static let titlePointSize: CGFloat = 40
///
static let subtitlePointSize: CGFloat = 20
/// UIKit 40pt system bold + italic
static var titleUIFont: UIFont {
let base = UIFont.systemFont(ofSize: titlePointSize, weight: .bold)
guard let descriptor = base.fontDescriptor.withSymbolicTraits([.traitBold, .traitItalic]) else {
return base
}
return UIFont(descriptor: descriptor, size: titlePointSize)
}
/// UIKit 20pt system bold
static var subtitleUIFont: UIFont {
UIFont.systemFont(ofSize: subtitlePointSize, weight: .bold)
}
/// SwiftUI
static var titleFont: Font { Font(titleUIFont) }
/// SwiftUI
static var subtitleFont: Font { Font(subtitleUIFont) }
}