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() } }