fix(live-room): 채팅창 얼림 버튼 위치와 안내 문구를 조정한다
This commit is contained in:
@@ -11,17 +11,20 @@ struct LiveRoomRightBottomButton: View {
|
||||
|
||||
let imageName: String
|
||||
let onClick: () -> Void
|
||||
let backgroundColor: Color?
|
||||
let onLongPress: (() -> Void)?
|
||||
let longPressDuration: Double
|
||||
|
||||
init(
|
||||
imageName: String,
|
||||
onClick: @escaping () -> Void,
|
||||
backgroundColor: Color? = nil,
|
||||
onLongPress: (() -> Void)? = nil,
|
||||
longPressDuration: Double = 2.0
|
||||
) {
|
||||
self.imageName = imageName
|
||||
self.onClick = onClick
|
||||
self.backgroundColor = backgroundColor
|
||||
self.onLongPress = onLongPress
|
||||
self.longPressDuration = longPressDuration
|
||||
}
|
||||
@@ -31,7 +34,15 @@ struct LiveRoomRightBottomButton: View {
|
||||
.resizable()
|
||||
.frame(width: 24, height: 24)
|
||||
.padding(10)
|
||||
.background(Color.gray52.opacity(0.6))
|
||||
.background(
|
||||
backgroundColor ?? Color(
|
||||
.sRGB,
|
||||
red: 82 / 255,
|
||||
green: 82 / 255,
|
||||
blue: 82 / 255,
|
||||
opacity: 0.6
|
||||
)
|
||||
)
|
||||
.cornerRadius(10)
|
||||
.onTapGesture { onClick() }
|
||||
.onLongPressGesture(minimumDuration: longPressDuration) {
|
||||
|
||||
Reference in New Issue
Block a user