devxoul / UITextView-Placeholder

A missing placeholder for UITextView
MIT License
1.48k stars 259 forks source link

How to change the text alignment #38

Open salimgcet opened 7 years ago

salimgcet commented 7 years ago

Hi team,

My "textview" alignment is right, so How I will change the alignment.

Thanks, Salim

devxoul commented 7 years ago

If you're textView's text alignment is set to right, placeholder will follow that alignment.

simulator screen shot 13 apr 2017 4 57 13 pm

darkhorse-coder commented 4 years ago

This module have placeholderTextView subview. you can use this view to change alignment. myTextView.textAlignment = .right myTextView.placeholderTextView.textAlignment = .right