Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC 699]: Adjusts Font Size to Fit for TextField #699

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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