devxoul / UITextView-Placeholder

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

Placeholder font changes if the first character entered into the text view is an emoticon #25

Open mattsson opened 8 years ago

mattsson commented 8 years ago

It changes to a monospaced font, like so:

screenshot_29_03_16_15_15

Steps to Reproduce:

  1. Enter emoticon into text view
  2. Delete emoticon

Expected Outcome: Text view shows placeholder with correct font.

Actual Outcome: Text view shows placeholder with monospaced font: <UICTFont: 0x7fc85e9ed660> font-family: "Apple Color Emoji"; font-weight: normal; font-style: normal; font-size: 14.00pt">

devxoul commented 8 years ago

@mattsson, thanks for detailed report. I'll check it as soon as possible :)

devxoul commented 8 years ago

@mattsson, which version of iOS and UITextView+Placeholder did you tested with? Every emoji cause the bug?