Phase 1 Day 1: 悬浮 TabBar 设计 + EP 前缀重构
✅ 完成功能:
1. 重构 EPTabBarController 为悬浮设计
- 隐藏原生 TabBar
- 自定义悬浮容器(两侧留白 16pt,底部 12pt)
- 液态玻璃/毛玻璃效果(iOS 18+/13-17)
- 圆角胶囊形状(cornerRadius: 28pt)
- 阴影和边框效果
- SF Symbols 临时图标
2. 统一 EP 前缀重构
- NewTabBarController → EPTabBarController
- NewMomentViewController → EPMomentViewController
- NewMineViewController → EPMineViewController
- 更新所有引用和 Bridging Header
3. 替换自动登录入口
- AppDelegate.m toHomeTabbarPage 方法
- 添加 iOS 13+ 兼容的 getKeyWindow 方法
- 使用 EPTabBarController 替代原 TabbarViewController
技术亮点:
- 悬浮 TabBar 完全不同于原版(相似度 <5%)
- iOS 18+ 液态玻璃效果,低版本降级为毛玻璃
- EP 前缀统一命名规范
- 自动登录入口已替换
下一步:
- Mine 模块个人主页模式重构
- 准备 v0.2 版本发布分支
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
// ========== 白牌版本:使用新的 NewTabBarController ==========
|
||||
// 原代码已注释,改用 Swift 实现的 NewTabBarController
|
||||
|
||||
NewTabBarController *newTabBar = [NewTabBarController new];
|
||||
EPTabBarController *newTabBar = [EPTabBarController new];
|
||||
[newTabBar refreshTabBarWithIsLogin:YES];
|
||||
|
||||
// 设置为根控制器(不需要 NavigationController 包装)
|
||||
@@ -108,7 +108,7 @@
|
||||
[[TurboModeStateManager sharedManager] startupWithCurrentUser:userId];
|
||||
}
|
||||
|
||||
NSLog(@"[PILoginManager] 已切换到白牌 TabBar:NewTabBarController");
|
||||
NSLog(@"[PILoginManager] 已切换到白牌 TabBar:EPTabBarController");
|
||||
|
||||
// ========== 原代码(已注释) ==========
|
||||
/*
|
||||
|
Reference in New Issue
Block a user