     }
     
     // MARK: Events
-
+    
     override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
         willPress?(item: self)
     }

    
    private func reset () {
        for sub in subviews {
            let v = sub 
            v.removeFromSuperview()
        }
        items = []

    
    // MARK: Init
    
    public init (frame: CGRect, titles: [String], action: YSSegmentedControlAction? = nil) {
        super.init (frame: frame)
        self.action = action
        self.titles = titles
        defaultAppearance()
    }
    
    required public init? (coder aDecoder: NSCoder) {
        super.init (coder: aDecoder)
    }
