Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions proposals/0699-adjusts-font-size-to-fit-text-field.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Adjusts Font Size To Fit for TextField
author:
- Lukas Lindqvist
date: 2023-08-15
---

# RFC0699: Adjusts Font Size To Fit for TextField

## Summary

Support both EditField(android) and UITextField(ios) built-in approach to adjustsFontSizeToFit similar to the existing approach for Text-component

## Motivation

When using TextInputs it is sometimes good to be able to have an input which starts big and then shrinks when inputing. This is used for example in iOS Calculator app.

## Detailed design

EditField supports this out of the box via the inherited constants `AUTO_SIZE_TEXT_TYPE` and so does UITextField via the `adjustsFontSizeToFitWidth` boolean and `minimumFontSize` variable