Skip to content

Commit

Permalink
✨ Feat: #24 - progressPager의 contentOffset을 0을 기준으로 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
usa4060 committed Oct 28, 2023
1 parent 132d109 commit d76f040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DesignSystem/Sources/CMCProgressPager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public final class CMCProgressPager: UIView {
currentPage.asObservable()
.subscribe(onNext: { [weak self] page in
guard let self = self else { return }
let xOffset = CGFloat(page) * self.frame.size.width
let xOffset = CGFloat(page - 1) * self.frame.size.width
self.pagerScrollView.setContentOffset(CGPoint(x: xOffset, y: 0), animated: true)
})
.disposed(by: disposeBag)
Expand Down

0 comments on commit d76f040

Please sign in to comment.