diff --git a/Sources/SwiftyTextView.swift b/Sources/SwiftyTextView.swift index ba35a14..4cecd33 100755 --- a/Sources/SwiftyTextView.swift +++ b/Sources/SwiftyTextView.swift @@ -120,7 +120,7 @@ public class SwiftyTextView: UITextView { countdownTextLayer.string = "\(minNumberOfWords)/\(maxNumberOfWords)" layer.addSublayer(countdownTextLayer) } - countdownTextLayer.frame.origin = CGPoint(x: bounds.size.width - countdownTextLayer.bounds.size.width, y: bounds.size.height - countdownTextLayer.bounds.size.height + contentOffset.y) + countdownTextLayer.frame.origin = CGPoint(x: (bounds.size.width - countdownTextLayer.bounds.size.width) - 10, y: (bounds.size.height - countdownTextLayer.bounds.size.height + contentOffset.y) - 4) } delegate?.textViewDidChange?(self) }