void UpdateKeyboard() { var keyboard = _searchHandler.Keyboard; _uiSearchBar.ApplyKeyboard(keyboard); // iPhone does not have an enter key on numeric keyboards if (Device.Idiom == TargetIdiom.Phone && (keyboard == Keyboard.Numeric || keyboard == Keyboard.Telephone)) { _numericAccessoryView = _numericAccessoryView ?? CreateNumericKeyboardAccessoryView(); _uiSearchBar.InputAccessoryView = _numericAccessoryView; } else { _uiSearchBar.InputAccessoryView = null; } _uiSearchBar.ReloadInputViews(); }