From d0d116f5f0e4c838936b20911e7981695d993a35 Mon Sep 17 00:00:00 2001 From: Lukas Lindqvist Date: Tue, 15 Aug 2023 11:25:58 +0200 Subject: [PATCH 1/2] start --- proposals/pre.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 proposals/pre.md diff --git a/proposals/pre.md b/proposals/pre.md new file mode 100644 index 00000000..8318c86b --- /dev/null +++ b/proposals/pre.md @@ -0,0 +1 @@ +Test \ No newline at end of file From fa2efbbe8a949aa9e7dede971230d17008a37cb1 Mon Sep 17 00:00:00 2001 From: Lukas Lindqvist Date: Tue, 15 Aug 2023 11:33:46 +0200 Subject: [PATCH 2/2] FInal --- ...699-adjusts-font-size-to-fit-text-field.md | 20 +++++++++++++++++++ proposals/pre.md | 1 - 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 proposals/0699-adjusts-font-size-to-fit-text-field.md delete mode 100644 proposals/pre.md diff --git a/proposals/0699-adjusts-font-size-to-fit-text-field.md b/proposals/0699-adjusts-font-size-to-fit-text-field.md new file mode 100644 index 00000000..01a28a5e --- /dev/null +++ b/proposals/0699-adjusts-font-size-to-fit-text-field.md @@ -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 \ No newline at end of file diff --git a/proposals/pre.md b/proposals/pre.md deleted file mode 100644 index 8318c86b..00000000 --- a/proposals/pre.md +++ /dev/null @@ -1 +0,0 @@ -Test \ No newline at end of file