MoZhouqi / KMPlaceholderTextView

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

Rendering Performance #22

Closed nicarq closed 8 years ago

nicarq commented 8 years ago

Hi The KMPlaceholderTextView won't give access to the UILabel used, so it's really difficult to setup the backgroundColor. Why do we care about it if it's transparent?. One of the slowest operations is rendering. In my case I'm using a lot of instances of KMPlaceholderTextView so if you use “Color Blended Layers" in the iPhone Simulator, you will see a lot of red areas.

It would be really useful to have access to the background color of the UILabel - through a method- or the UILabel. Right now it's marked as private.

MoZhouqi commented 8 years ago

The placeholderLabel property is public in release 1.2.2.

nicarq commented 8 years ago

Cool! and thanks :)

MoZhouqi commented 8 years ago

My pleasure!