     
     var textViewIsShowing: Bool?
     
-    override public func viewDidLoad() {
+    override open func viewDidLoad() {
         super.viewDidLoad()
         setup()
-        self.view.backgroundColor = UIColor.clearColor()
-        self.navigationController?.navigationBarHidden = true
+        self.view.backgroundColor = UIColor.clear
+        self.navigationController?.isNavigationBarHidden = true
     }
     
     /// Set up the view
-    private func setup() {
-        
-        imageView = UIImageView(frame: UIScreen.mainScreen().bounds)
+    fileprivate func setup() {
+        
+        imageView = UIImageView(frame: UIScreen.main.bounds)
         imageView?.image = self.image
-        imageView?.autoresizingMask = UIViewAutoresizing([.FlexibleWidth, .FlexibleHeight])
-        imageView?.contentMode = UIViewContentMode.Center
+        imageView?.autoresizingMask = UIViewAutoresizing([.flexibleWidth, .flexibleHeight])
+        imageView?.contentMode = UIViewContentMode.center
         self.view.addSubview(imageView!)
         
         drawView = ButterflyDrawView()

        textWillUpload = textView.text
    }
    
    public func textView(textView: UITextView, shouldChangeTextInRange range: NSRange, replacementText text: String) -> Bool {
        if text == "\n" {
            textView.resignFirstResponder()
            return false

            }
        }
        showAlertViewController()
        print(self.imageWillUpload!)
        print(self.textWillUpload!)
    }
    
    func showAlertViewController() {
        self.dismiss(animated: false, completion: nil)
        let alert = UIAlertController(title: "Success", message: "Report Success", preferredStyle: UIAlertControllerStyle.alert)
        alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.cancel, handler: nil))
        self.presentingViewController?.present(alert, animated: true, completion: nil)
    }
    
    @objc internal func colorChangedButtonPressed(_ sender: UIButton?) {
        if drawView?.lineColor != UIColor.yellow {
            drawView?.lineColor = UIColor.yellow
        } else {
            drawView?.lineColor = UIColor.red
        }
    }
    
    @objc internal func inputDescriptionButtonPressed(_ sender: UIButton?) {
        textView.show()
        drawView?.disable()
    }
    
    @objc internal func clearButtonPressed(_ sender: UIButton?) {
        drawView?.clear()
    }
    
