         fatalError("init(coder:) has not been implemented\n")
     }
     
-    private func setup() {
+    fileprivate 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 bundlePath = NSString(format: "%@/Frameworks/Butterfly.framework/Butterfly.bundle", Bundle.main.bundlePath)
         let colorChangeButtonImgPath = NSString(format: "%@/analytics.png", bundlePath)
         let colorChangeButtonImg = UIImage(contentsOfFile: colorChangeButtonImgPath as String)
         let descriptionButtonImgPath = NSString(format: "%@/email-outline.png", bundlePath)

            width: BottomBar.ButtonSize,
            height: BottomBar.ButtonSize)
        descriptionButton?.frame = descriptionButtonRect
        descriptionButton?.setImage(descriptionButtonImg, forState: UIControlState.Normal)
        self.addSubview(descriptionButton!)
        
        clearPathButton = UIButton()

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