I have added a checkmarkImageView as rightview of a skyfloatinglabeltextfield as follows:
let checkmark = UIImage(named: "checkmark")
checkmarkImageView = UIImageView(image: checkmark)
checkmarkImageView?.frame = CGRect(x: 0.0, y: 0.0, width: 20.0, height: 20.0)
textfield?.rightView = checkmarkImageView
textfield?.rightViewMode = .always
editView.addSubview(textfield!)
It is not aligning vertically centre with the text of the textfield. How do I achieve that?