i\'m working on a project(Swift4,Xcode 9.2) which has a feature to get text input and the blinking bar/line should be of big size (it should be S
(Swift4,Xcode 9.2)
(it should be S
There are some unnecessary lines of codes, so this is the revised:
class CustomTextField: UITextField { override func caretRect(for position: UITextPosition) -> CGRect { var rect = super.caretRect(for: position) rect = CGRect(x: rect.origin.x, y: .zero, width: 15, height: 30) return rect } }