                        options: [],
                        animations: {
                         [unowned self] in
-                        self.selector.frame.origin.x = target
+                        
+                        self.layoutIfNeeded()
             },
                        completion: nil)
     }

    var items = [YSSegmentedControlItem]()
    var selector = UIView()
    var bottomLine = CALayer()
    
    // MARK: Init
    

            y: frame.size.height - appearance.bottomLineHeight,
            width: frame.size.width,
            height: appearance.bottomLineHeight)
    }
    
    private func defaultAppearance() {
