fix(live-room-like-heart): 키보드가 올라올 때 중앙 하트 오버레이가 위로 이동하여 키보드에 가려지지 않도록 수정
This commit is contained in:
@@ -790,6 +790,9 @@ struct LiveRoomViewV2: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 키보드가 올라오면 중앙 하트를 위로 올려 가리지 않도록 이동
|
||||||
|
.offset(y: keyboardHandler.keyboardHeight > 0 ? -(keyboardHandler.keyboardHeight / 2 + 60) : 0)
|
||||||
|
.animation(.spring(response: 0.3, dampingFraction: 0.85), value: keyboardHandler.keyboardHeight)
|
||||||
}
|
}
|
||||||
.onReceive(heartWaveTimer) { _ in
|
.onReceive(heartWaveTimer) { _ in
|
||||||
guard isLongPressingHeart else { return }
|
guard isLongPressingHeart else { return }
|
||||||
|
|||||||
Reference in New Issue
Block a user