Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kemalbakacak committed Mar 6, 2019
2 parents 9710562 + d2328a4 commit 7ed088d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PuiSegmentedControl.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'PuiSegmentedControl'
s.version = '1.2.1'
s.version = '1.2.2'
s.license = 'MIT'
s.summary = 'PuiSegmentedControl is a customizable for segmented control'
s.homepage = 'https://github.com/kbakacak/PuiSegmentedControl'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Variables that you can use:

```swift
open var animatedTabTransitionDuration: TimeInterval = 1 // The value of the animation tab when isAnimatedTabTransition property is true
@objc dynamic open var animatedTabTransitionRedrawDifferenceDuration: TimeInterval = 0 // The value of the redraw view difference from transition duration when isAnimatedTabTransition property is true
open var animatedTabTransitionRedrawDifferenceDuration: TimeInterval = 0 // The value of the redraw view difference from transition duration when isAnimatedTabTransition property is true
open var backgroundCornerRadius: CGFloat = 0 // The radius of the background.
open var backgroundCustomColor: UIColor = .clear // The color of the background.
open var borderCornerRadius: CGFloat = 0 // The radius of the control's border.
Expand Down
4 changes: 3 additions & 1 deletion Source/PuiSegmentedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ open class PuiSegmentedControl: UIControl {
self.seperatorViews[self.seperatorViews.count - 1].isHidden = true
} else {
self.seperatorViews[index - 1].isHidden = true
self.seperatorViews[index].isHidden = true
if index < self.seperatorViews.count {
self.seperatorViews[index].isHidden = true
}
}
}

Expand Down

0 comments on commit 7ed088d

Please sign in to comment.