add placeholder text in textfield swift code example Example: uitextfield placeholder text textField.placeholder = "placeholderString"