Add Lottie global loading overlay and fix stuck loading states.

Replace per-VC activity indicators with a ref-counted GlobalLoadingManager, and resolve duplicate show/hide calls on Profile, Statistics, and Home tabs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 17:43:13 +08:00
parent 3b17b7f7f0
commit 39186cfe25
14 changed files with 281 additions and 75 deletions

View File

@ -91,16 +91,13 @@ final class StatisticsViewController: BaseViewController {
}
private func initializeStatistics() async {
showLoading()
await viewModel.initStatistics(api: statisticsAPI)
hideLoading()
applyViewModel()
}
private func selectPeriod(_ period: String) {
Task {
showLoading()
await viewModel.selectPeriod(period, api: statisticsAPI)
hideLoading()
}
}