If the text is bigger then the visible space the cursor fails to scroll to the right with the text, as the standard behavior does for a UITextField. Seems like setting the textRectForBounds, stops the UITextField from tracking the cursor.
I have same issue. Is there any workaround for this? I am using constraint.
let contentView = UIView()
contentView.setTranslatesAutoresizingMaskIntoConstraints(false)
let emailInput = JVFloatLabeledTextField()
emailInput.floatingLabel.font = PlaceHolderFontSmall
emailInput.floatingLabelTextColor = PlaceholderSmallColor
emailInput.setTranslatesAutoresizingMaskIntoConstraints(false)
let views = ["contentView": contentView, "emailInput": emailInput]
let constrainV = NSLayoutConstraint.constraintsWithVisualFormat("V:|-(16)-[emailInput(36)]-(16)-|",
options: NSLayoutFormatOptions.AlignAllCenterX, metrics: nil, views: views)
contentView.addConstraints(constrainV)
let constrainH = NSLayoutConstraint.constraintsWithVisualFormat("H:|-10-[emailInput(260)]-10-|",
options: nil, metrics: nil, views: views)
contentView.addConstraints(constrainH)