             width: BottomBar.ButtonSize,
             height: BottomBar.ButtonSize)
         clearPathButton?.frame = clearPathButtonRect
-        clearPathButton?.setImage(clearButtonImg, forState: UIControlState.Normal)
+        clearPathButton?.setImage(clearButtonImg, for: UIControlState())
         self.addSubview(clearPathButton!)
     }
     
     func hide() {
-        self.hidden = true
+        self.isHidden = true
     }
     
     func show() {
-        self.hidden = false
+        self.isHidden = false
     }
 }

        fatalError("init(coder:) has not been implemented\n")
    }
    
    private func setup() {
        self.backgroundColor = BottomBar.BackgroundColor
        
        let centerY: CGFloat = self.frame.size.height / 2 - BottomBar.ButtonSize / 2
        
        let bundlePath = NSString(format: "%@/Frameworks/Butterfly.framework/Butterfly.bundle", NSBundle.mainBundle().bundlePath)
        let colorChangeButtonImgPath = NSString(format: "%@/analytics.png", bundlePath)
        let colorChangeButtonImg = UIImage(contentsOfFile: colorChangeButtonImgPath as String)
        let descriptionButtonImgPath = NSString(format: "%@/email-outline.png", bundlePath)

    var clearPathButton: UIButton?
    
    convenience init() {
        self.init(frame: CGRect(x: 0, y: UIScreen.main.bounds.height - BottomBar.Height, width: UIScreen.main.bounds.width, height: BottomBar.Height))
    }
    
    override init(frame: CGRect) {
