优化冷启动流程: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,26 @@
//
// SplashTypographyTests.swift
// suixinkanTests
//
// Created by Codex on 2026/6/30.
//
import XCTest
@testable import suixinkan
/// Storyboard SwiftUI 使
final class SplashTypographyTests: XCTestCase {
/// 使 40pt system bold
func testTitleFontUsesExpectedPointSizeAndWeight() {
let font = SplashTypography.titleUIFont
XCTAssertEqual(font.pointSize, SplashTypography.titlePointSize, accuracy: 0.01)
XCTAssertTrue(font.fontDescriptor.symbolicTraits.contains(.traitBold))
}
/// 使 20pt system bold
func testSubtitleFontUsesExpectedPointSizeAndWeight() {
let font = SplashTypography.subtitleUIFont
XCTAssertEqual(font.pointSize, SplashTypography.subtitlePointSize, accuracy: 0.01)
XCTAssertTrue(font.fontDescriptor.symbolicTraits.contains(.traitBold))
}
}