feat: 优化视图组件与数据迁移逻辑
- 移除DataMigrationManager类,简化数据迁移逻辑。 - 在FeedListView和MeView中新增图片预览功能,提升用户体验。 - 更新OptimizedDynamicCardView以支持图片点击回调,增强交互性。 - 新增PreviewItem结构体以管理图片预览状态,提升代码可读性与维护性。 - 清理AppDelegate中的冗余代码,优化启动流程。
This commit is contained in:
@@ -50,8 +50,6 @@ struct MainFeature {
|
||||
MeFeature()
|
||||
}
|
||||
Reduce { state, action in
|
||||
debugInfoSync("MainFeature action: \(action)")
|
||||
debugInfoSync("MainFeature state: \(state)")
|
||||
switch action {
|
||||
case .onAppear:
|
||||
return .run { send in
|
||||
@@ -84,7 +82,6 @@ struct MainFeature {
|
||||
let nickname = userInfo?.nick ?? ""
|
||||
state.appSettingState = AppSettingFeature.State(nickname: nickname, avatarURL: avatarURL, userInfo: userInfo)
|
||||
state.navigationPath.append(.appSetting)
|
||||
debugInfoSync("\(state.navigationPath)")
|
||||
return .none
|
||||
case .me:
|
||||
return .none
|
||||
|
Reference in New Issue
Block a user