From a9d247d2bbd88b02fb593a17e5a8d153c35b3d8e Mon Sep 17 00:00:00 2001 From: LeeMyeongJin Date: Tue, 29 Oct 2024 15:02:54 +0900 Subject: [PATCH] =?UTF-8?q?[Chore]=20#219=20-=20=EA=B3=B5=EB=B0=B1=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Search/ViewController/SearchViewController.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Terning-iOS/Terning-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift b/Terning-iOS/Terning-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift index 686242f..4d1a843 100644 --- a/Terning-iOS/Terning-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift +++ b/Terning-iOS/Terning-iOS/Source/Presentation/Search/ViewController/SearchViewController.swift @@ -304,7 +304,6 @@ extension SearchViewController: UICollectionViewDataSource { stopTimer() startTimer() - if scrollView.contentOffset.x == 0 { // 첫번째 배너 가 보이면 (배너 갯수) 번째 index의 배너갯수 으로 이동시키기 scrollView.setContentOffset(.init(x: screenWidth * initialBannerCount, y: scrollView.contentOffset.y), animated: false) } else if scrollView.contentOffset.x == screenWidth * (initialBannerCount + 1) { // 마지막 1이 보이면 1번째 index의 1로 이동