라이브 게스트
- 본인이 스피커일 때 리스너로 변경하는 버튼 추가
This commit is contained in:
@@ -20,7 +20,7 @@ struct LiveRoomOverlayStrokeTextButton: View {
|
||||
var body: some View {
|
||||
Text(text)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color.red)
|
||||
.foregroundColor(textColor)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.vertical, 6)
|
||||
.overlay(
|
||||
|
@@ -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: {}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user