Replace CYLTabBarController with native UITabBarController for main tabs.
Use a system scan tab slot with MainScanTabItem interception so scanner presentation no longer depends on CYL PlusButton, and remove the CYLTabBarController pod dependency. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -66,6 +66,7 @@ enum AppTab: String, CaseIterable, Identifiable, Hashable {
|
||||
image: unselectedImage,
|
||||
selectedImage: selectedImage
|
||||
)
|
||||
item.accessibilityIdentifier = "main.tab.\(rawValue)"
|
||||
return item
|
||||
}
|
||||
|
||||
|
||||
@ -106,7 +106,7 @@ final class RootViewController: UIViewController {
|
||||
}
|
||||
}
|
||||
|
||||
/// 登录后将 `MainTabBarController` 设为 window 根控制器,满足 CYLTabBarController 挂载要求。
|
||||
/// 登录后将 `MainTabBarController` 设为 window 根控制器。
|
||||
private func showMainTabBarAsWindowRoot() {
|
||||
removeCurrentAuthChild()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user