We received a bug from QA testing our build that enables liquid glass.
The scenario:
- We have a screen with a bunch of text fields to fill out.
- We have a single Done button in a toolbar above the keyboard.
- The Done button is right-aligned, so the rest of the toolbar to the left of the button is empty.
- Prior to Liquid Glass, this toolbar was an opaque rectangle that covered the content beneath it.
- With Liquid Glass enabled, the toolbar is transparent.
- Sometimes a field or other UI element will scroll into view beneath the toolbar.
- One might think, because it is transparent, that they could simply tap on the UI element beneath the toolbar, but you cannot!
- The toolbar blocks all taps on content beneath it.
I have tried and cannot find a way to make the toolbar have a non-transparent background. I have tried various combinations of ToolbarItem with an HStack in it. With an HStack containing a Spacer and a Button, I was able to get a toolbar that takes up the width of the screen (minus the rounded corners) and is non-transparent. But this only works on iOS 26. On iOS 27, it completely ignores the Spacer.
So is there a way to make the tool, with placement: keyboard not be transparent so it does not give the false impression you can tap on content beneath it?
Example of demo project showing the toolbar, with an HStack containing a Spacer, on iOS 26 & 27: