From 3590db82bee5ff3c82264a1c317cadbe6c780a0c Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 4 Feb 2026 16:58:14 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EB=A3=B8=20-=20?= =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=ED=81=AC=EB=A6=AC=EC=97=90?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=98=81?= =?UTF-8?q?=EC=97=AD=EC=97=90=20=ED=8C=94=EB=A1=9C=EC=9A=B0=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/LiveRoomInfoCreatorView.swift | 22 ++++--------------- .../View/LiveRoomInfoGuestView.swift | 7 ------ .../Component/View/LiveRoomInfoHostView.swift | 3 --- .../Sources/Live/Room/V2/LiveRoomViewV2.swift | 8 ------- 4 files changed, 4 insertions(+), 36 deletions(-) diff --git a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoCreatorView.swift b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoCreatorView.swift index 609477b..555be20 100644 --- a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoCreatorView.swift +++ b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoCreatorView.swift @@ -16,11 +16,7 @@ struct LiveRoomInfoCreatorView: View { let isMute: Bool let isAdult: Bool - let isFollowing: Bool let isActiveSpeaker: Bool - let isShowFollowingButton: Bool - - let onClickFollow: () -> Void let onClickProfile: () -> Void var body: some View { @@ -59,17 +55,10 @@ struct LiveRoomInfoCreatorView: View { .foregroundColor(.grayee) .lineLimit(1) - HStack(spacing: 5.3) { - Text(creatorNickname) - .appFont(size: 12, weight: .medium) - .foregroundColor(.gray77) - .lineLimit(1) - - if isShowFollowingButton { - Image(isFollowing ? "btn_following" : "btn_follow") - .onTapGesture { onClickFollow() } - } - } + Text(creatorNickname) + .appFont(size: 12, weight: .medium) + .foregroundColor(.gray77) + .lineLimit(1) } } .padding(8) @@ -89,10 +78,7 @@ struct LiveRoomInfoCreatorView_Previews: PreviewProvider { creatorProfileUrl: "https://cf.sodalive.net/profile/26/26-profile-ddf78b4d-0300-4c50-9c84-5d8a95fd5fe2-4892-1705256364320", isMute: false, isAdult: false, - isFollowing: true, isActiveSpeaker: true, - isShowFollowingButton: true, - onClickFollow: {}, onClickProfile: {} ) } diff --git a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoGuestView.swift b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoGuestView.swift index 9666f7b..410adf0 100644 --- a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoGuestView.swift +++ b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoGuestView.swift @@ -26,13 +26,11 @@ struct LiveRoomInfoGuestView: View { let muteSpeakerList: [UInt] let activeSpeakerList: [UInt] - let isFollowing: Bool let isAdult: Bool let onClickQuit: () -> Void let onClickToggleBg: () -> Void let onClickShare: () -> Void - let onClickFollow: (Bool) -> Void let onClickProfile: (Int) -> Void let onClickNotice: () -> Void let onClickMenuPan: () -> Void @@ -104,10 +102,7 @@ struct LiveRoomInfoGuestView: View { creatorProfileUrl: creatorProfileUrl, isMute: muteSpeakerList.contains(UInt(creatorId)), isAdult: isAdult, - isFollowing: isFollowing, isActiveSpeaker: activeSpeakerList.contains(UInt(creatorId)), - isShowFollowingButton: true, - onClickFollow: { onClickFollow(isFollowing) }, onClickProfile: { onClickProfile(creatorId) } ) @@ -253,12 +248,10 @@ struct LiveRoomInfoGuestView_Previews: PreviewProvider { ], muteSpeakerList: [], activeSpeakerList: [], - isFollowing: false, isAdult: false, onClickQuit: {}, onClickToggleBg: {}, onClickShare: {}, - onClickFollow: { _ in }, onClickProfile: { _ in }, onClickNotice: {}, onClickMenuPan: {}, diff --git a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoHostView.swift b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoHostView.swift index f088c13..aa80da3 100644 --- a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoHostView.swift +++ b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInfoHostView.swift @@ -102,10 +102,7 @@ struct LiveRoomInfoHostView: View { creatorProfileUrl: creatorProfileUrl, isMute: muteSpeakerList.contains(UInt(creatorId)), isAdult: isAdult, - isFollowing: false, isActiveSpeaker: activeSpeakerList.contains(UInt(creatorId)), - isShowFollowingButton: false, - onClickFollow: {}, onClickProfile: {} ) diff --git a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift index 55633aa..5c2cc87 100644 --- a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift +++ b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift @@ -102,7 +102,6 @@ struct LiveRoomViewV2: View { speakerList: liveRoomInfo.speakerList, muteSpeakerList: viewModel.muteSpeakers, activeSpeakerList: viewModel.activeSpeakers, - isFollowing: liveRoomInfo.isFollowing, isAdult: liveRoomInfo.isAdult, onClickQuit: { viewModel.isShowQuitPopup = true @@ -113,13 +112,6 @@ struct LiveRoomViewV2: View { onClickShare: { viewModel.shareRoom() }, - onClickFollow: { - if $0 { - viewModel.creatorUnFollow() - } else { - viewModel.creatorFollow() - } - }, onClickProfile: { if $0 != UserDefaults.int(forKey: .userId) { viewModel.getUserProfile(userId: $0)