Skip to content

Fixed ‘textView.font’ and ‘self.placeholderLabel.font’ fonts with dif…#40

Open
WynterW wants to merge 1 commit intodevxoul:mainfrom
WynterW:UITextView+Placeholder_Branch
Open

Fixed ‘textView.font’ and ‘self.placeholderLabel.font’ fonts with dif…#40
WynterW wants to merge 1 commit intodevxoul:mainfrom
WynterW:UITextView+Placeholder_Branch

Conversation

@WynterW
Copy link

@WynterW WynterW commented Jul 28, 2017

The initial value of 'textView.text' is not empty. Then edit 'textView.text' to empty, the code for setting the font cannot be executed when updating the placeholders. This results in inconsistencies between 'textView.font' and 'self.placeholderLabel.font'.

@devxoul
Copy link
Owner

devxoul commented Jul 31, 2017

Can you write tests for this?

@popwarfour
Copy link

Whoops, didn't see (or test) this PR first. I just submitted what appears to be a duplicate.
#44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants