优化冷启动流程:Launch Screen 对齐 Splash,仅阻塞 rolePermissions。
移除 SplashCoordinator,bootstrap 期间用 SplashView 覆盖避免空白闪屏,其余账号数据改为后台补充刷新。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -10,13 +10,13 @@
|
||||
|
||||
App 启动链路为:
|
||||
|
||||
**`suixinkanApp` → `RootView` → `SplashView` 覆盖层 + 并行 bootstrap → 按 `AppSession.phase` 展示 `LoginView` 或 `MainTabsView`**
|
||||
**`suixinkanApp` → `RootView` → 阻塞 `rolePermissions` + 后台补充 bootstrap → 按 `AppSession.phase` 展示 `LoginView` 或 `MainTabsView`**
|
||||
|
||||
用户感知的「启动 Loading」并非 Lottie 全局 Loading,而是:
|
||||
|
||||
1. **系统 Launch Screen**(白底 + Logo,iOS 原生)
|
||||
2. **应用内 `SplashView`**(品牌页,bootstrap 完成即结束,无固定最短展示时长)
|
||||
3. **有 token 时的 `.restoring` 阶段**(Splash 下方空白背景,等待 4 个 API 完成)
|
||||
1. **系统 Launch Screen**(品牌页,iOS 原生)
|
||||
2. **`.restoring` 短暂空白**(仅等待 `rolePermissions`,完成后立即进主界面)
|
||||
3. **后台补充刷新**(`userInfo`、`scenicListAll`、`storeAll`,不阻塞首屏)
|
||||
|
||||
冷启动期间 **不使用** `GlobalLoadingCenter` / Lottie 动画。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user