Closed tciuro closed 4 years ago
I have cloned the project and realized that I can also set the font on placeholderFont
:
usernameTextField.placeholderFont = UIFont.systemFont(ofSize: 20.0)
usernameTextField.titleFont = UIFont.systemFont(ofSize: 20.0)
What I see is that originally, the text field honors the size. After typing, the title (above the textfield) still continues to honor the font size, but the actual value of the text field is smaller. I cannot find the place in the code where the font size is being overriden.
How/where is the font size of the field changed with a smaller font?
You also need to do:
usernameTextField.titleLabel.adjustsFontForContentSizeCategory = true
This is intentional for now and there are no plans to add it.
To clarify I am considering the library done and it wasn't built to accommodate dynamic text. I want to avoid feature creep or big changes which this would be.
I have the following code:
I was hoping that either
placeholder
ortitle
would pick theadjustsFontForContentSizeCategory
setting fromusernameTextField
, but they don't.It would be great if the text fields (or some API) for
placeholder
andtitle
were exposed so that we could activate dynamic type.