title: How to access computed variable inside computed initializer in swift 3?
body: <p>In my swift 3 program shown below, I want to access computed variable 'darkColor' inside computed initializer. But swift 3 compiler giving me an error: <strong>instance member 'darkColor' cannot be used on type 'LoginViewController'</strong></p>
  
  <pre><code>import UIKit
  
  class LoginViewController: BaseViewController, UITextFieldDelegate {
  
      // FIXME: - computed variables
      private var darkColor: UIColor {
          return UIColor(hex: 0x0083C5, alpha: 1)
      }
  
      // FIXME: - create views / computed initializers
      lazy var textEmail: UITextField = {
          let textField = UITextField()
          textField.placeholder = "Email"
          textField.font = UIFont.systemFont(ofSize: 18, weight: UIFontWeightSemibold)
          textField.textColor = darkColor     // here I'm getting error that "instance member 'darkColor' cannot be used on type 'LoginViewController'"
          textField.keyboardType = .emailAddress
          textField.autocorrectionType = .no
          textField.translatesAutoresizingMaskIntoConstraints = false
          textField.delegate = self
          return textField
      }()
  
      let emailUnderline: UIView = {
          let view = UIView()
          view.backgroundColor = darkColor     // here I'm getting error that "instance member 'darkColor' cannot be used on type 'LoginViewController'"
          view.translatesAutoresizingMaskIntoConstraints = false
          return view
      }()
  
      // FIXME: - life cycle
      override func viewDidLoad() {
          super.viewDidLoad()
  
          view.backgroundColor = UIColor.white
      }
  }
  </code></pre>