Skip to content

Commit

Permalink
refactor/#64 간단 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
HEHEEUN committed Nov 28, 2024
1 parent e31b005 commit f86649c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions saftyReport/saftyReport/Source/Main/MainViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ class MainViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
connectAPI()

collectionView.reloadData()
}

private func setUI() {
Expand Down Expand Up @@ -224,6 +222,7 @@ class MainViewController: UIViewController {
for banner in bannerList {
bannerListImgUrl.append(banner.bannerUrl ?? "")
}
collectionView.reloadData()
case let .failure(error):
print(error.localizedDescription)
}
Expand Down Expand Up @@ -365,7 +364,3 @@ extension MainViewController: UICollectionViewDelegate {
return header
}
}

#Preview {
MainViewController()
}

0 comments on commit f86649c

Please sign in to comment.