Skip to content

Commit

Permalink
Removed unused spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvershkov committed Feb 7, 2019
1 parent f8ccb96 commit 8cb0835
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Segmentio/Source/Segmentio.swift
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ open class Segmentio: UIView {
let itemWitdh = segmentioItems.enumerated().map { (index, _) -> CGFloat in
return segmentWidth(for: IndexPath(item: index, section: 0))
}

let isCommonBehaviour = (isFlipped && isRTL) || (!isFlipped && !isRTL)

if let indicatorLayer = indicatorLayer, let options = segmentioOptions.indicatorOptions {
Expand Down Expand Up @@ -579,7 +578,6 @@ open class Segmentio: UIView {
transform = CGAffineTransform(scaleX: -1, y: 1)
isFlipped = true
}

}
}

Expand Down Expand Up @@ -705,7 +703,6 @@ extension Segmentio.Points {
// Cell will try to position itself in the middle, unless it can't because
// the collection view has reached the beginning or end
startX = (item.collectionViewWidth / 2) - (cellWidth / 2 )

if spaceBefore < (item.collectionViewWidth - cellWidth) / 2 {
startX = isCommonBehaviour ? spaceBefore : item.collectionViewWidth - spaceBefore - cellWidth
}
Expand Down

0 comments on commit 8cb0835

Please sign in to comment.