라이브 공유하기 버튼 다시 추가

This commit is contained in:
Yu Sung
2024-06-28 13:30:55 +09:00
parent 9533e97f89
commit 03d86ee2d5
5 changed files with 269 additions and 201 deletions

View File

@@ -30,6 +30,7 @@ struct LiveRoomInfoGuestView: View {
let onClickQuit: () -> Void
let onClickToggleBg: () -> Void
let onClickShare: () -> Void
let onClickFollow: (Bool) -> Void
let onClickProfile: (Int) -> Void
let onClickNotice: () -> Void
@@ -85,6 +86,13 @@ struct LiveRoomInfoGuestView: View {
strokeWidth: 1,
strokeCornerRadius: 5.3
) { onClickToggleBg() }
LiveRoomOverlayStrokeImageButton(
imageName: "ic_share",
strokeColor: Color.graybb,
strokeWidth: 1,
strokeCornerRadius: 5.3
) { onClickShare() }
}
HStack(spacing: 8) {
@@ -218,6 +226,7 @@ struct LiveRoomInfoGuestView_Previews: PreviewProvider {
isAdult: false,
onClickQuit: {},
onClickToggleBg: {},
onClickShare: {},
onClickFollow: { _ in },
onClickProfile: { _ in },
onClickNotice: {},

View File

@@ -31,6 +31,7 @@ struct LiveRoomInfoHostView: View {
let onClickQuit: () -> Void
let onClickToggleBg: () -> Void
let onClickShare: () -> Void
let onClickEdit: () -> Void
let onClickProfile: (Int) -> Void
let onClickNotice: () -> Void
@@ -77,6 +78,13 @@ struct LiveRoomInfoHostView: View {
strokeCornerRadius: 5.3
) { onClickToggleBg() }
LiveRoomOverlayStrokeImageButton(
imageName: "ic_share",
strokeColor: Color.graybb,
strokeWidth: 1,
strokeCornerRadius: 5.3
) { onClickShare() }
LiveRoomOverlayStrokeImageButton(
imageName: "ic_edit",
strokeColor: Color.graybb,
@@ -233,6 +241,7 @@ struct LiveRoomInfoHostView_Previews: PreviewProvider {
isAdult: false,
onClickQuit: {},
onClickToggleBg: {},
onClickShare: {},
onClickEdit: {},
onClickProfile: { _ in },
onClickNotice: {},