     }
     
     func setFontName(fontName: String?) {
-        let name:String
-        if let fontName = fontName where !fontName.isEmpty {
-            name = fontName
-        } else {
-            name = kDefaultFont
+        var name:String
+        name = kDefaultFont
+        if !(fontName?.isEmpty != nil) {
+            if let fontName = fontName {
+                name = fontName
+            }
         }
         self.titleLabel?.font = UIFont(name: name, size:kFontSize)
     }

    private var displayLink: CADisplayLink?
    private let shapeLayer     = CAShapeLayer()
    private var bendableOffset = UIOffsetZero
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }

        fatalError("NSCoding not supported")
    }

    required public override init() {
        super.init(nibName:nil, bundle:nil)
        view.frame            = UIScreen.mainScreen().bounds
        view.autoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth
