What's the default color for placeholder text in UITextField?

pterry26 picture pterry26 · Jun 25, 2015 · Viewed 33.6k times · Source

Does anyone know what color a UITextField's placeholder text is, by default? I'm trying to set a UITextView's text to the same color. I've read elsewhere that it is UIColor.lightGrayColor() but it is actually a little lighter.

Answer

Daniel Fernandes picture Daniel Fernandes · Oct 9, 2015

The colour is #C7C7CD (r: 199 g:199 b: 205) (as what pterry26 said)

and the font-family is HelveticaNeue-Medium and size is 16


Note that this is a guess at what the color looks like on a screen. For the actual values, simply inspect the Apple code for attributedPlaceholder.