Answers for "UITextField letter spacing"

0

spacing in uitextfield

//swift 2.0
textfield.defaultTextAttributes.updateValue(spacing, forKey: NSKernAttributeName)
//swift 3.0
yourField.defaultTextAttributes.updateValue(36.0, 
     forKey: NSAttributedString.Key.kern)
Posted by: Guest on January-07-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language