I add a series of buttons in the UIToolbar of accessoryView.
Before liquidGlass (Xcode 26.6, iOS 26), I get this:
Buttons are properly stacked, allowing up to 8 buttons, which is what I need.
But with liquidGlass, buttons are now enclosed in a useless bubble, and thus take much more space. No way to accommodate 8 buttons anymore, they are displayed in the "…" followup section, which is very inconvenient.
In iOS 26, I can still set UIDesignRequiresCompatibility to true and get the expected presentation. But that does not work in Xcode 27 / iOS 27.
Code is essentially the following:
let bar = UIToolbar(frame:CGRect(x: 0, y: 0, width: 200, height: 44))
let letterBack = UIImage(named: "letterBackground")!
let targetSize = CGSize(width: 36, height: 36)
let scaledImage = letterBack.scalePreservingAspectRatio(
targetSize: targetSize
)
let letterI = UIBarButtonItem(title: "I", style: .plain, target: self, action: #selector(letterTapped(_:)))
letterI.setBackgroundImage(scaledImage, for: .normal, barMetrics: .default)
// Same for other letters
bar.items = [letterI, letterV, letterX, letterL, letterC, flexibleSpace, peseudoReturn]
bar.sizeToFit()
aTextField.inputAccessoryView = bar
I have tried to use
barMetrics: .compact
to no avail
So, a few questions:
Is it possible, with liquidGlass, to have the buttons displayed without their ellipse bubble, so that they stack against each other ?
Is there other appearence setting to set ?
Or should I give up toolbar and create a collectionView that I will place atop keyboard ?
In anycase, liquidGlass is really problematic in term of screen estate use.
2
0
419