         
         // Always show the label for the last date
         if (expanded && (i == lastIndex-1) && (lastSelectedIndex? != lastIndex-1)) {
-          let label = labelsLayer?.sublayers[BreakPoint.Latest.toRaw()] as CATextLayer
+          let label = labelsLayer?.sublayers[BreakPoint.Latest.rawValue] as CATextLayer
           label.position = CGPoint(x: 0, y: offset + fontOffset)
           let date = dataSource!.dateAtIndex(i)
           label.string = JCMTimeSliderControl.shortDateFormatter.stringFromDate(date)

    
    if from < breakPoints[.Earliest]!.y {
      println("<E")
      return NSDate.dateWithTimeIntervalSinceReferenceDate(breakPoints[.Earliest]!.ti)
    }
    
    if let b = breakPoints[.FirstDistorted] {

    labelsLayer!.masksToBounds = false
    labelsLayer!.position = CGPointZero
    
    let a : Int = BreakPoint.Earliest.rawValue
    let b = BreakPoint.Latest.rawValue
    let font = UIFont.systemFontOfSize(UIFont.smallSystemFontSize())
    let height = font.ascender - font.descender
    for i in a...b {
