title: Set the textfield values to an array in Swift 3
body: <p>I need to assign the text input values to the variable that I created and than send it to the server. I did everything but the textfields since the iOS development is new for me.</p>
  
  <p>So, I need to set data from the email textfield to the parameters variable and password field as well so I can use that parameters variable in my .post method.</p>
  
  <pre><code>   import Alamofire
     import UIKit
  
     class InitialViewController: UIViewController {
  
  let url = "https://api.sis.kemoke.net/auth/login"
  let parameters = ["email": "example@example.com", "password": "examplePassword"]
  
  // Parameters textfields
  @IBOutlet weak var email: UITextField!
  @IBOutlet weak var password: UITextField!
  
  // A method for the login button
  @IBAction func loginButton(_ sender: UIButton) {
      Alamofire.request(url, method: .post, parameters: parameters, encoding: URLEncoding.httpBody, headers: nil).responseJSON {
          (response) in
          print(response.result.value!)
      }
  }
  
  override func viewDidLoad() {
      super.viewDidLoad()
  }
  </code></pre>
  
  <p>}</p>