Fix TabBar icon assets and simplify Podfile post_install.

Rename tab icons to snake_case with @2x/@3x scales, register CYL plus button at app launch, and remove redundant Podfile hooks already covered by the Xcode project.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 18:49:37 +08:00
parent a1c031c9b7
commit 43179abf2c
52 changed files with 93 additions and 82 deletions

View File

@ -33,13 +33,13 @@ enum AppTab: String, CaseIterable, Identifiable, Hashable {
var selectedImageName: String {
switch self {
case .home:
"TabHomeSelected"
"tab_home_selected"
case .orders:
"TabOrderSelected"
"tab_order_selected"
case .statistics:
"TabDataSelected"
"tab_data_selected"
case .profile:
"TabProfileSelected"
"tab_profile_selected"
}
}
@ -47,13 +47,13 @@ enum AppTab: String, CaseIterable, Identifiable, Hashable {
var unselectedImageName: String {
switch self {
case .home:
"TabHomeUnselected"
"tab_home_unselected"
case .orders:
"TabOrderUnselected"
"tab_order_unselected"
case .statistics:
"TabDataUnselected"
"tab_data_unselected"
case .profile:
"TabProfileUnselected"
"tab_profile_unselected"
}
}
@ -66,7 +66,6 @@ enum AppTab: String, CaseIterable, Identifiable, Hashable {
image: unselectedImage,
selectedImage: selectedImage
)
item.accessibilityIdentifier = "main.tab.\(rawValue)"
return item
}