UITextField: minimumFontSize property
The minimumFontSize property is the smallest font size allowed when adjustsFontSizeToFitWidth is true.
Value
A number, in pt.
- Readable and writable.
- The default is
0. Not verified in the simulator. - Has no effect when
adjustsFontSizeToFitWidthisfalse. - There is no change event: only the app's own code changes it.
Examples
js
const field = new UITextField();
field.adjustsFontSizeToFitWidth = true;
field.minimumFontSize = 12;
console.log(field.minimumFontSize);Effect: The console prints 12.
Corresponding iOS API
UITextField.minimumFontSize.