Fix home navigation bar visibility and hide scan tab title.

Home uses a custom top bar, so TabNavigationController now syncs system nav bar visibility with the stack top; remove the scan tab text label to show icon only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 08:59:31 +08:00
parent 7469f92177
commit 1a6d4a1791
5 changed files with 81 additions and 2 deletions

View File

@ -13,7 +13,7 @@ enum MainScanTabItem {
static func makeTabBarItem() -> UITabBarItem {
let image = UIImage(named: "icon_scan")?.withRenderingMode(.alwaysOriginal)
let selectedImage = UIImage(named: "icon_scan")?.withRenderingMode(.alwaysOriginal)
let item = UITabBarItem(title: "扫码", image: image, selectedImage: selectedImage)
let item = UITabBarItem(title: nil, image: image, selectedImage: selectedImage)
item.accessibilityLabel = "扫码核销"
item.accessibilityIdentifier = "main.scan"
return item