Files
汉秋 1a6d4a1791 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>
2026-06-29 08:59:31 +08:00

22 lines
709 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// MainScanTabItem.swift
// suixinkan
//
import UIKit
@MainActor
/// TabBar TabBarItem
enum MainScanTabItem {
/// TabBarItem `MainTabBarController`
static func makeTabBarItem() -> UITabBarItem {
let image = UIImage(named: "icon_scan")?.withRenderingMode(.alwaysOriginal)
let selectedImage = UIImage(named: "icon_scan")?.withRenderingMode(.alwaysOriginal)
let item = UITabBarItem(title: nil, image: image, selectedImage: selectedImage)
item.accessibilityLabel = "扫码核销"
item.accessibilityIdentifier = "main.scan"
return item
}
}