feat: 新增导航功能与设置页面支持

- 在MainFeature中新增导航路径和设置页面状态管理,支持页面导航。
- 更新MainView以集成导航功能,添加测试按钮以触发导航。
- 在MeFeature中新增设置按钮点击事件,交由MainFeature处理。
- 增强MeView以支持设置按钮,提升用户体验。
This commit is contained in:
edwinQQQ
2025-07-23 20:10:37 +08:00
parent 772543243f
commit bb49b00a59
4 changed files with 124 additions and 18 deletions

View File

@@ -25,6 +25,8 @@ struct MeFeature {
case loadMore
case userInfoResponse(Result<UserInfo, APIError>)
case momentsResponse(Result<MyMomentsResponse, APIError>)
//
case settingButtonTapped
}
func reduce(into state: inout State, action: Action) -> Effect<Action> {
@@ -84,6 +86,9 @@ struct MeFeature {
state.momentsError = error.localizedDescription
}
return .none
case .settingButtonTapped:
// MainFeature
return .none
}
}