This tutorial requires basic knowledge of Storyboards and Swift. Read this if you lack that.
Find the Text Field in the Object Library and drag it to your view:
Create an Outlet for the Text Field:
At any point, you can set or get (printed in this case) the contents of the Text Field with the following:
myTextField.text = "Hello" print("\(myTextField.text)")
Resulting in the following: