Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: MartyIX <203266+MartyIX@users.noreply.github.com>
  • Loading branch information
rmarinho and MartyIX committed Feb 19, 2024
1 parent d6fd5d8 commit 0fafc87
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -42,8 +42,8 @@ static void UpdateText(this IUITextInput textInput, InputView inputView, bool is
var textRange = textInput.GetTextRange(textInput.BeginningOfDocument, textInput.EndOfDocument);
var oldText = textInput.TextInRange(textRange) ?? string.Empty;

// We need this variable because in some cases because of the iOS's
// auto correction eg. eg '--' => '—' the actual text in the input might have
// We need this variable in some cases because of the iOS's
// auto correction eg. '--' => '—' the actual text in the input might have
// a different length that the one that has been set in the control.
var newTextLength = textInput.TextInRange(textRange)?.Length ?? 0;

Expand Down

0 comments on commit 0fafc87

Please sign in to comment.