集成 MJRefresh 并重构主 TabBar 为系统 TabView 样式。

新增 SwiftUI 桥接层与单元测试,更新 Tab 图标资源命名和多倍图,同步调整 UI Test 的 Tab/扫码定位逻辑。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 10:22:53 +08:00
parent 79e735f628
commit 8997d1ba1c
140 changed files with 6574 additions and 877 deletions

View File

@ -42,6 +42,34 @@ enum AppTab: String, CaseIterable, Identifiable, Hashable {
}
}
/// Tab 使
var selectedImageName: String {
switch self {
case .home:
"tab_home_selected"
case .orders:
"tab_order_selected"
case .statistics:
"tab_data_selected"
case .profile:
"tab_profile_selected"
}
}
/// Tab 使
var unselectedImageName: String {
switch self {
case .home:
"tab_home_unselected"
case .orders:
"tab_order_unselected"
case .statistics:
"tab_data_unselected"
case .profile:
"tab_profile_unselected"
}
}
@ViewBuilder
var rootView: some View {
switch self {

View File

@ -14,6 +14,7 @@ struct suixinkanApp: App {
init() {
AppUITestLaunchState.resetIfNeeded()
MJRefreshSupport.configure()
}
var body: some Scene {