You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 📜 Description
Adopt `KeyboardToolbar` UI for iOS 26.
## 💡 Motivation and Context
⚠️ This is a temporary solution. ⚠️
Starting from iOS 26 we:
- have rounder corners for keyboard;
- proposed to use liquid glass effect.
An original implementation from Safari now uses rounded corners + glass
effect. Also instead of "Done" button Apple shows ✔️ Overall current
Safari implementation doesn't look so well (in my opinion).
If we have a look how `IQKeyboardManager` handles that... well, it's
even worse:
<p align="center">
<img width="250"
src="https://github.com/user-attachments/assets/6500200d-c8a0-444d-b522-de72c4d6bb6d">
</p>
So I think the UI for this element is not finalized yet.
Anyway current implementation in keyboard-controller doesn't look well
at all, so in this PR I'm:
- rounding corners;
- adding horizontal margins (so toolbar doesn't take full width);
- moving toolbar a little bit up, so that it has a small spacing between
floating element and keyboard.
This UI is "okay" in my understanding (but still not perfect). As a
temporary solution I think it's good enough, however I'm currently in a
big phase of research with `KeyboardExtender` and
`KeyboardBackgroundView`. Theoretically we may want to utilize these
components in the future or we can continue our research to see what is
the new way of building keyboard "extenders" and how it can be
back-ported to older versions.
Closes#974
## 📢 Changelog
<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->
### JS
- move `KeyboardToolbar` constant to separate file;
- add `KEYBOARD_HAS_ROUNDED_CORNERS` variable;
- make toolbar "floating" in case if keyboard has rounded corners;
## 🤔 How Has This Been Tested?
Tested manually on iPhone 16 Pro (iOS 26).
## 📸 Screenshots (if appropriate):
|Safari|Keyboard Controller|
|------|--------------------|
|<img width="250"
src="https://github.com/user-attachments/assets/b066013a-2a98-4c59-8ac7-99955c981e82">|<img
width="250"
src="https://github.com/user-attachments/assets/7861c1d5-643b-42ea-a60c-5cd4b57820b2">|
### Landscape
<img width="500"
src="https://github.com/user-attachments/assets/96ab8dbf-e168-45c5-b373-794ca337da89">
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
0 commit comments