When you are typing a text in the UITextfield you want that place holder moves to right or show the show of which format of text you have to add.To use Right placehoder TextField in iOS you have to use the JVFloatLabeledTextField library.It best to use where you want the user can enter the email or password. You can download the HTYTextField library from this link (https://github.com/hanton/HTYTextField).If you are creating UITexfield from storyboard you have to pass theHTYTextField in the class If you are creating theUITexfield programmatically follow this code:-
let emailField =HTYTextField(frame: CGRect(x: 5, y: self.venY, width: SCREEN_WIDTH - 15, height: 50))
emailField.placeholder = "Profile Name"
emailField.tintColor = UIColor().HexToColor(hexString: primary_color)
emailField.text = self.profileNames
newsletterTextField.tag = 2200
emailField.rightPlaceholder = "[email protected] "
Be the first to comment.