title: Swift Facebook SDK Login Button position
body: <p>I am developing an iOS app using Swift 3 and the Facebook SDK for my Login.
  I am still a beginner in iOS development, especially regarding all the UI related stuff (coming from android development)</p>
  
  <p>I am using the <code>LoginButton</code> provided by the Facebook SDK, and for now its position is on the center of the screen. I would like to move it to the bottom of my <code>ViewController</code>, and if possible to place it in a layout that I would create through the storyboard. (so it will appear exactly where I want)</p>
  
  <p><a href="https://developers.facebook.com/docs/swift/login" rel="nofollow noreferrer">Swift Facebook SDK Login</a></p>
  
  <p>I checked the Facebook developper documentation, but I can't find anything providing the properties of that <code>LoginButton</code>, and how to change its position. I know that it is also possible to create a custom <code>LoginButton</code>, but as I just want to move the button and not change its physical appearance, I don't think it is necessary.</p>
  
  <pre><code>let loginButton = LoginButton(readPermissions: [ .publicProfile , .custom("user_birthday")])
  
  loginButton.center = view.center
  loginButton.delegate = self
  
  view.addSubview(loginButton)
  </code></pre>
  
  <p><strong>EDIT :</strong></p>
  
  <p>Thanks to lithium's answer, here is what I did :</p>
  
  <pre><code>let loginButton = LoginButton(readPermissions: [ .publicProfile , .custom("user_birthday")])
  let newCenter = CGPoint(x: self.view.frame.width / 2, y: self.view.frame.height - 70)
  loginButton.center = newCenter
  loginButton.delegate = self
  view.addSubview(loginButton)
  </code></pre>
  
  <p>That will center the button at the bottom of my viewcontroller, with a margin of 70.</p>