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

[iOS] Add Platform Specific feature for setting AdjustsFontSizeToFitWidth on Entry #429

merged 2 commits into from Oct 20, 2016


None yet
3 participants

pauldipietro commented Oct 7, 2016

Description of Change

This PR adds a Platform Specific feature for setting the value of AdjustsFontSizeToFitWidth on Entry in iOS. From Apple's docs:

Normally, the text field’s content is drawn with the font you specify in the font property. If this property is set to true, however, and the contents in the text property exceed the text field’s bounding rectangle, the receiver starts reducing the font size until the string fits or the minimum font size is reached. The text is shrunk along the baseline.

2016-10-07 10 30 23

Bugs Fixed


API Changes


  • public static readonly BindableProperty AdjustsFontSizeToFitWidthProperty
  • public static bool GetAdjustsFontSizeToFitWidth(BindableObject element)
  • public static void SetAdjustsFontSizeToFitWidth(BindableObject element, bool value)
  • public static bool AdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config)
  • public static IPlatformElementConfiguration<iOS, FormsElement> SetAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config, bool value)
  • public static IPlatformElementConfiguration<iOS, FormsElement> EnableAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config)
  • public static IPlatformElementConfiguration<iOS, FormsElement> DisableAdjustsFontSizeToFitWidth(this IPlatformElementConfiguration<iOS, FormsElement> config)

Behavioral Changes


PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

Looks good! Just need to update docs.

pauldipietro added some commits Oct 7, 2016

@pauldipietro pauldipietro merged commit 8d03598 into master Oct 20, 2016

@rmarinho rmarinho deleted the ios-ps-adjustfont branch Jun 22, 2017

@samhouts samhouts added this to the 2.3.4 milestone Jun 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment