From b2f4b4428996f6059947c4dc506f3f5b51c44c83 Mon Sep 17 00:00:00 2001 From: Byung jin Date: Tue, 26 Dec 2023 11:00:48 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20::=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EB=B0=8F=20=EB=B7=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Scene/GitHubRanking/GithubRankingView.swift | 6 +++++- .../Scene/GitHubRanking/GithubRankingViewModel.swift | 8 ++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Sources/Scene/GitHubRanking/GithubRankingView.swift b/Application/Sources/Scene/GitHubRanking/GithubRankingView.swift index f7764cb3..388472b5 100644 --- a/Application/Sources/Scene/GitHubRanking/GithubRankingView.swift +++ b/Application/Sources/Scene/GitHubRanking/GithubRankingView.swift @@ -11,7 +11,11 @@ struct GithubRankingView: View { var body: some View { ScrollView(showsIndicators: false) { VStack(alignment: .leading, spacing: 16) { - TopRankView(topRankData: viewModel.githubRankList) + HStack { + Spacer() + TopRankView(topRankData: viewModel.githubRankList) + Spacer() + } Text("나의 순위") .sdText(type: .body1, textColor: .GrayScale.gray900) RankingListCellView( diff --git a/Application/Sources/Scene/GitHubRanking/GithubRankingViewModel.swift b/Application/Sources/Scene/GitHubRanking/GithubRankingViewModel.swift index 8e6000e1..f5fa0882 100644 --- a/Application/Sources/Scene/GitHubRanking/GithubRankingViewModel.swift +++ b/Application/Sources/Scene/GitHubRanking/GithubRankingViewModel.swift @@ -45,11 +45,7 @@ class GithubRankingViewModel: ObservableObject { } func updateGithubRanking() { - self.updateGithubRankingUseCase.execute() - .subscribe(onCompleted: { - self.fetchMyGithubInfo() - self.fetchGithubInfoList() - }) - .disposed(by: disposeBag) + fetchMyGithubInfo() + fetchGithubInfoList() } }