Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.
This repository was 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

@TimAEllis

Description

@TimAEllis

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions