     optional func segmentedControlDidPressedItemAtIndex (segmentedControl: YSSegmentedControl, index: Int)
 }
 
-typealias YSSegmentedControlAction = (segmentedControl: YSSegmentedControl, index: Int) -> Void
+public typealias YSSegmentedControlAction = (segmentedControl: YSSegmentedControl, index: Int) -> Void
 
 public class YSSegmentedControl: UIView {
     

    
    // MARK: Init
    
    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)
    }


// MARK: - Appearance

public struct YSSegmentedControlAppearance {
    public var backgroundColor: UIColor
    public var selectedBackgroundColor: UIColor
    public var textColor: UIColor
    public var font: UIFont
    public var selectedTextColor: UIColor
    public var selectedFont: UIFont
    public var bottomLineColor: UIColor
    public var selectorColor: UIColor
    public var bottomLineHeight: CGFloat
    public var selectorHeight: CGFloat
    
}


