how to add a text field to enter the data in the format of time in swift code example Example: xcode get info from text field let text = myTextField.text