refactor(live-room): BIG_HEART 메시지 수신 애니메이션이 여러번 실행되면 버벅거림과 발열이 생기던 문제 수정
- DispatchQueue로 Concurrent 처리
This commit is contained in:
@@ -767,7 +767,7 @@ struct LiveRoomViewV2: View {
|
||||
.opacity(showWaterHeart ? 1 : 0)
|
||||
.animation(.easeInOut(duration: 0.2), value: showWaterHeart)
|
||||
|
||||
// 원격 수신 시(또는 공통 트리거) 물 채우기 하트 - 0→1 스케일 업(0.5s)
|
||||
// 원격 수신 시(또는 공통 트리거) 물 채우기 하트 - 0→1 스케일 업(1.0~1.5s 랜덤)
|
||||
WaterHeartView(progress: viewModel.remoteWaterProgress,
|
||||
show: viewModel.isShowRemoteBigHeart,
|
||||
phase: viewModel.remoteWavePhase)
|
||||
@@ -790,6 +790,9 @@ struct LiveRoomViewV2: View {
|
||||
.allowsHitTesting(false)
|
||||
}
|
||||
}
|
||||
// drawingGroup은 레이어의 경계(Rect) 밖을 클립하므로, 전체 화면 크기로 확장해 클리핑 방지
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.drawingGroup(opaque: false, colorMode: .linear)
|
||||
}
|
||||
// 키보드가 올라오면 중앙 하트를 위로 올려 가리지 않도록 이동
|
||||
.offset(y: keyboardHandler.keyboardHeight > 0 ? -(keyboardHandler.keyboardHeight / 2 + 60) : 0)
|
||||
|
||||
Reference in New Issue
Block a user