     }
     
     // UI Elements
-    override var frame: CGRect {
+    override public var frame: CGRect {
         didSet {
             self.resetContentFrame()
         }

    func selectSegment(segment: SMSegment)
}

class SMSegment: UIView {
    
    weak var delegate: SMSegmentDelegate?
    

        }
    }
    
    override public func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) {
        super.touchesEnded(touches, withEvent: event)
        
        self.delegate?.selectSegment(self)
