Skip to content

Commit 4458061

Browse files
committed
refactor: print 문 삭제 및 매직 넘버 삭제
1 parent b1f4410 commit 4458061

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Projects/Presentation/Sources/EmotionRegister/View/EmotionRegistrationViewController.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ final class EmotionRegistrationViewController: BaseViewController<EmotionRegiste
6262
private var isMarbleHeld = false
6363
private var marbleImageViewMidY: CGFloat?
6464
private var marbleImageViewPanGesture: UIPanGestureRecognizer?
65-
private var infoSwipeOverlayViewPanGesturePanGesture: UIPanGestureRecognizer?
6665
private var emotion: Emotion?
6766
private var dataSource: UICollectionViewDiffableDataSource<Int, Emotion>?
6867
private var cancellables: Set<AnyCancellable>
@@ -130,7 +129,6 @@ final class EmotionRegistrationViewController: BaseViewController<EmotionRegiste
130129

131130
infoSwipeOverlayView.backgroundColor = .clear
132131
infoSwipeOverlayView.isUserInteractionEnabled = false
133-
infoSwipeOverlayView.backgroundColor = .clear
134132

135133
infoLabel.numberOfLines = 0
136134
infoLabel.font = BitnagilFont.init(style: .body2, weight: .medium).font
@@ -286,7 +284,7 @@ final class EmotionRegistrationViewController: BaseViewController<EmotionRegiste
286284

287285
let originalEmotionCount = emotions.count
288286
let centerIndex = itemSetCount / 2 + 1
289-
let multipliedEmotions = (0..<7).flatMap { i in
287+
let multipliedEmotions = (0..<itemSetCount).flatMap { i in
290288
i == centerIndex ? emotions : emotions.map { $0.copy() }
291289
}
292290

@@ -296,7 +294,6 @@ final class EmotionRegistrationViewController: BaseViewController<EmotionRegiste
296294
else { return }
297295

298296
lastMarbleCellIndex = currentIndex
299-
print(lastMarbleCellIndex)
300297

301298
var snapshot = NSDiffableDataSourceSnapshot<Int, Emotion>()
302299
snapshot.appendSections([0])

0 commit comments

Comments
 (0)