Skip to content

Commit

Permalink
Merge pull request #120 from L-j-h-c/fix/#119-emptyMissionToRanking
Browse files Browse the repository at this point in the history
[Fix] #119 - 미션 리스트가 empty일 경우 랭킹 버튼이 작동하지 않는 오류 수정
  • Loading branch information
L-j-h-c authored Jan 27, 2023
2 parents 318a725 + df6576a commit 0334f76
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,15 @@ extension MissionListVC {
make.width.equalToSuperview()
make.bottom.equalToSuperview().priority(.low)
}
bringRankingFloatingButtonToFront()
}

private func bringRankingFloatingButtonToFront() {
self.view.subviews.forEach { view in
if view == self.rankingFloatingButton {
self.view.bringSubviewToFront(rankingFloatingButton)
}
}
}

private func applySnapshot(model: [MissionListModel]) {
Expand Down

0 comments on commit 0334f76

Please sign in to comment.