UITextView-Placeholder icon indicating copy to clipboard operation
UITextView-Placeholder copied to clipboard

How to change the text alignment

Open salimgcet opened this issue 8 years ago • 2 comments
trafficstars

Hi team,

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

Thanks, Salim

salimgcet avatar Apr 13 '17 07:04 salimgcet

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

devxoul avatar Apr 13 '17 07:04 devxoul

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

darkhorse-coder avatar Jul 01 '20 21:07 darkhorse-coder