Skip to content

Commit

Permalink
fix: fix the issue of creating wrong type of PositionInfoProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyingtao committed Jun 14, 2023
1 parent c4d4b57 commit 68b65c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Inchworm/Source/SlideRuler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class SlideRuler: UIView {
init(frame: CGRect, sliderZeroPositionType: SliderZeroPositionType) {
switch sliderZeroPositionType {
case .middle:
self.positionInfoProvider = LeftStyleSliderRulerPositionInfoProvider()
case .left:
self.positionInfoProvider = MiddleStyleSliderRulerPositionInfoProvider()
case .left:
self.positionInfoProvider = LeftStyleSliderRulerPositionInfoProvider()
}

super.init(frame: frame)
Expand Down

0 comments on commit 68b65c0

Please sign in to comment.