title: How to make a full-width UITextField in Swift
body: <p>I'm very new to Swift, like one week new and I'd like to come up with a 100% width UITextField. The expected result is that the text field should be 100% of the screen's width.</p>
  
  <p>This is what I've done for iPhone 5 displays having a 320px vertically centered TextField.</p>
  
  <p><a href="https://i.stack.imgur.com/uJtpj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uJtpj.png" alt="enter image description here"></a></p>
  
  <p>That looks as expected, but when I'm going on iPhone 6, this happens:
  <a href="https://i.stack.imgur.com/U4Uaq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U4Uaq.png" alt="enter image description here"></a></p>
  
  <p>How is it possible to make this 100% of the screen's width? As I can only see fixed width inputs in size inspector.</p>