라이브 후원

- 비밀 후원 기능 추가
This commit is contained in:
Yu Sung
2024-08-26 20:07:37 +09:00
parent 81846f7f7b
commit 534a6e737e
9 changed files with 150 additions and 43 deletions

View File

@@ -203,10 +203,12 @@ struct LiveRoomViewV2: View {
)
}
LiveRoomRightBottomButton(
imageName: "ic_donation",
onClick: { viewModel.isShowDonationPopup = true }
)
if liveRoomInfo.creatorId != UserDefaults.int(forKey: .userId) {
LiveRoomRightBottomButton(
imageName: "ic_donation",
onClick: { viewModel.isShowDonationPopup = true }
)
}
LiveRoomRightBottomButton(
imageName: "ic_donation_message_list",
@@ -390,8 +392,8 @@ struct LiveRoomViewV2: View {
}
if viewModel.isShowDonationPopup {
LiveRoomDonationDialogView(isShowing: $viewModel.isShowDonationPopup, isAudioContentDonation: false) { can, message in
viewModel.donation(can: can, message: message)
LiveRoomDonationDialogView(isShowing: $viewModel.isShowDonationPopup, isAudioContentDonation: false) { can, message, isSecret in
viewModel.donation(can: can, message: message, isSecret: isSecret)
}
}