MoZhouqi / KMPlaceholderTextView

A UITextView subclass that adds support for multiline placeholder written in Swift.
MIT License
805 stars 141 forks source link

Arabic and Persian Chars #45

Open imehrshad95 opened 6 years ago

imehrshad95 commented 6 years ago

Why doesn't support Arabic and Persian chars???

maneesh888 commented 5 years ago

I am facing the same issue, I could not find anything wrong in the code, but for some reason the placeholderLabel is not visible in arabic mode

Goldy-74 commented 4 years ago

I have updated this method and it is working fine with me, i hope it helps someone

private func updateConstraintsForPlaceholderLabel() {
    placeholderLabel.leftAnchor.constraint(equalTo: self.leftAnchor, constant: textContainer.lineFragmentPadding).isActive = true
    placeholderLabel.topAnchor.constraint(equalTo: self.topAnchor, constant: textContainer.lineFragmentPadding).isActive = true
    placeholderLabel.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true

}