Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Setting placeholder text before setting a font causes the placeholder to be small #36

Open
TimAEllis opened this issue Nov 16, 2016 · 0 comments

Comments

@TimAEllis
Copy link

A small quirk I found is if you set the placeholder text before setting the font then the placeholder's font no longer matches the text view's font. Not sure if this is an intended feature. The code snippet below shows an example:

SAMTextView *textView = [SAMTextView new];
textView.translatesAutoresizingMaskIntoConstraints = NO;
textView.backgroundColor = [UIColor yellowColor];
textView.placeholder = @"This is the placeholder";
textView.font = [UIFont preferredFontForTextStyle:UIFontTextStyleTitle2];

Maybe when setting a font, it could regenerate the attributed string?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant