parent
fccbff90b7
commit
44d7cd414e
|
@ -19,15 +19,15 @@ struct LiveRoomHeartDonationChatItemView: View {
|
|||
|
||||
Text(nickname)
|
||||
.font(.system(size: 12, weight: .bold))
|
||||
.foregroundColor(Color(hex: "f0c030"))
|
||||
.foregroundColor(Color(hex: "ec3aa6"))
|
||||
|
||||
Text("'님이 마음을 전했습니다 : 💕")
|
||||
.font(.system(size: 12))
|
||||
.foregroundColor(Color.white)
|
||||
.foregroundColor(Color.gray11)
|
||||
}
|
||||
.padding(.vertical, 6.7)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(Color.gray77.opacity(0.8))
|
||||
.background(Color.white.opacity(0.7))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1981,7 +1981,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
|
|||
}
|
||||
|
||||
private func showNextHeartMessage() {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
|
||||
if let nextHeartNickname = self.heartNicknameList.first {
|
||||
self.heartNickname = nextHeartNickname
|
||||
self.heartNicknameList.removeFirst()
|
||||
|
@ -1994,7 +1994,7 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
|
|||
func startHeartTimer() {
|
||||
if heartTimer == nil {
|
||||
let timer = DispatchSource.makeTimerSource(queue: DispatchQueue.main)
|
||||
timer.schedule(deadline: .now(), repeating: 0.033) // 30 FPS
|
||||
timer.schedule(deadline: .now(), repeating: 0.033)
|
||||
timer.setEventHandler { [unowned self] in
|
||||
DispatchQueue.main.async {
|
||||
self.updateHearts()
|
||||
|
|
Loading…
Reference in New Issue