                 pointY: indicatorPointY(),
                 position: segmentioOptions.segmentPosition,
                 style: segmentioStyle,
-                leftInset: superviewInsets.left,
-                rightInset: superviewInsets.right
+                insets: superviewInsets
             )
             let insetX = ((points.endPoint.x - points.startPoint.x) - (item.endX - item.startX))/2
             moveShapeLayer(

                pointY: bounds.midY,
                position: segmentioOptions.segmentPosition,
                style: segmentioStyle,
                leftInset: superviewInsets.left,
                rightInset: superviewInsets.right
            )
            
            moveShapeLayer(


extension Segmentio.Points {
    
    init(item: Segmentio.ItemInSuperview, atIndex index: Int, allItemsCellWidth: [CGFloat], pointY: CGFloat, position: SegmentioPosition, style: SegmentioStyle, insets: UIEdgeInsets) {
        let cellWidth = item.cellFrameInSuperview.width
        var startX = item.startX
        var endX = item.endX
        var spaceBefore: CGFloat = insets.left
        var spaceAfter: CGFloat = -insets.right
        var i = 0
        allItemsCellWidth.forEach { width in
            if i < index { spaceBefore += width }
