라이브 탭 새로고침 방법 변경 - 당겨서 새로고침 -> 지금 라이브 중 옆 새로고침 버튼으로 변경

This commit is contained in:
Yu Sung
2023-12-22 03:34:38 +09:00
parent ceef432695
commit 15421ca4d5
6 changed files with 42 additions and 11 deletions

View File

@@ -457,6 +457,14 @@ final class LiveViewModel: ObservableObject {
}
}
func refreshLiveNow() {
page = 1
isLast = false
self.liveNowItems.removeAll()
getLiveNowList()
}
private func getRoomDetail(roomId: Int, onSuccess: @escaping (GetRoomDetailResponse) -> Void) {
isLoading = true
repository.getRoomDetail(roomId: roomId)