I have two textfield (username & password) and want to make top rounded corner for username and bottom rounded corner for password as per attachment.
Just create a UIView
.
Put your two text fields in the UIView
.
Remove the border style of UITextField
.
yourView.layer.cornerRadius = 10.0
yourView.clipsToBounds = true