라이브 게스트

- 본인이 스피커일 때 리스너로 변경하는 버튼 추가
This commit is contained in:
Yu Sung
2024-03-15 00:56:49 +09:00
parent 68cc99c263
commit e95d152e45
3 changed files with 17 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ struct LiveRoomInfoGuestView: View {
let onClickNotice: () -> Void
let onClickMenuPan: () -> Void
let onClickTotalDonation: () -> Void
let onClickChangeListener: () -> Void
var body: some View {
ZStack {
@@ -50,6 +51,16 @@ struct LiveRoomInfoGuestView: View {
Spacer()
if speakerList.contains(where: { $0.id == UserDefaults.int(forKey: .userId)}) {
LiveRoomOverlayStrokeTextButton(
text: "리스너 변경",
textColor: Color.grayee,
strokeColor: Color.graybb,
strokeWidth: 1,
strokeCornerRadius: 5.3
) { onClickChangeListener() }
}
LiveRoomOverlayStrokeTextToggleButton(
isOn: isOnBg,
onText: "배경 ON",
@@ -205,7 +216,8 @@ struct LiveRoomInfoGuestView_Previews: PreviewProvider {
onClickProfile: { _ in },
onClickNotice: {},
onClickMenuPan: {},
onClickTotalDonation: {}
onClickTotalDonation: {},
onClickChangeListener: {}
)
}
}