feat(home): 팔로잉 스케줄 섹션을 추가한다

This commit is contained in:
Yu Sung
2026-07-01 13:38:43 +09:00
parent 772af3dfe3
commit e3dd508528
6 changed files with 325 additions and 6 deletions

View File

@@ -167,7 +167,8 @@ struct MainView: View {
onSelectFollowingTab: handleFollowingTabSelection,
onTapFollowingAll: handleFollowingAllTap,
onTapChatTab: handleFollowingChatTabTap,
onTapChatRoom: handleFollowingChatRoomTap
onTapChatRoom: handleFollowingChatRoomTap,
onTapFollowingSchedule: handleFollowingScheduleTap
)
case .content:
MainPlaceholderTabView(title: MainTab.content.title)
@@ -501,6 +502,21 @@ struct MainView: View {
appState.setAppStep(step: .chatRoom(id: roomId))
}
private func handleFollowingScheduleTap(type: CreatorActivityType, targetId: Int) {
guard targetId > 0 else { return }
switch type {
case .live, .liveReplay:
handleRecommendationLiveTap(roomId: targetId)
case .audio:
handleRecommendationContentTap(contentId: targetId)
case .community:
handleRecommendationCommunityTap(creatorId: targetId)
case .unknown:
return
}
}
private func handleFollowingTabSelection() -> Bool {
let trimmed = token.trimmingCharacters(in: .whitespacesAndNewlines)
guard !trimmed.isEmpty else {