feat(home): 팔로잉 스케줄 섹션을 추가한다
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user