diff --git a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift index 1c1c4ed..c99b6ae 100644 --- a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift +++ b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift @@ -263,13 +263,28 @@ struct LiveRoomViewV2: View { LiveRoomRightBottomButton( imageName: "ic_heart_pink", onClick: { viewModel.likeHeart() }, - onLongPress: { viewModel.likeHeart(messageType: .BIG_HEART_DONATION, heartCount: 100) } + onLongPress: { + if !viewModel.isAvailableLikeHeart { + viewModel.isShowNoticeLikeHeart = true + return + } + viewModel.likeHeart(messageType: .BIG_HEART_DONATION, heartCount: 100) + } ) .onLongPressGesture( minimumDuration: 2.0, maximumDistance: 50, pressing: { pressing in if pressing { + // 좋아해요 사용 가능 여부 체크: 불가 시 즉시 중단하고 안내 노출 + if !viewModel.isAvailableLikeHeart { + isLongPressingHeart = false + showWaterHeart = false + waterProgress = 0 + longPressStartAt = nil + viewModel.isShowNoticeLikeHeart = true + return + } if !isLongPressingHeart { isLongPressingHeart = true longPressStartAt = Date()