Skip to content

Commit 7ed088d

Browse files
committed
Merge branch 'develop'
2 parents 9710562 + d2328a4 commit 7ed088d

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

PuiSegmentedControl.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'PuiSegmentedControl'
3-
s.version = '1.2.1'
3+
s.version = '1.2.2'
44
s.license = 'MIT'
55
s.summary = 'PuiSegmentedControl is a customizable for segmented control'
66
s.homepage = 'https://github.com/kbakacak/PuiSegmentedControl'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Variables that you can use:
3535

3636
```swift
3737
open var animatedTabTransitionDuration: TimeInterval = 1 // The value of the animation tab when isAnimatedTabTransition property is true
38-
@objc dynamic open var animatedTabTransitionRedrawDifferenceDuration: TimeInterval = 0 // The value of the redraw view difference from transition duration when isAnimatedTabTransition property is true
38+
open var animatedTabTransitionRedrawDifferenceDuration: TimeInterval = 0 // The value of the redraw view difference from transition duration when isAnimatedTabTransition property is true
3939
open var backgroundCornerRadius: CGFloat = 0 // The radius of the background.
4040
open var backgroundCustomColor: UIColor = .clear // The color of the background.
4141
open var borderCornerRadius: CGFloat = 0 // The radius of the control's border.

Source/PuiSegmentedControl.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ open class PuiSegmentedControl: UIControl {
487487
self.seperatorViews[self.seperatorViews.count - 1].isHidden = true
488488
} else {
489489
self.seperatorViews[index - 1].isHidden = true
490-
self.seperatorViews[index].isHidden = true
490+
if index < self.seperatorViews.count {
491+
self.seperatorViews[index].isHidden = true
492+
}
491493
}
492494
}
493495

0 commit comments

Comments
 (0)