Has anyone noticed the tap target of standard #swiftUI Button(role: .close) being super small on iOS 26?
Am I missing something? The glass effect will trigger, but nothing happens when you don’t tap it directly centered.
Has anyone noticed the tap target of standard #swiftUI Button(role: .close) being super small on iOS 26?
Am I missing something? The glass effect will trigger, but nothing happens when you don’t tap it directly centered.
@myell0w honestly I don’t see that. Just tried the Close button in my apps and it seems to work fine.
What’s your code for the Close button?
@kslazinski as simple as ToolbarItem { Button(role: .close) }
I can see the same issue with the close button on the compose sheet here in @IceCubesApp
@kslazinski I think I found the root cause - applying .buttonStyle(.plain) leads to this behaviour.
BUT (and I don’t even know why) without that, the close button is fully-colored and appears prominent, which I don’t want. Am I missing something?
@myell0w That’s strange. Only the role: .confirmation (or confirm?) was supposed to do that.
Also when you add buttonStyle .plain it’s not Glass anymore?
Can you post your code for this button here? Without the action. With everything else?
@nikolovski Thank you! Kind of, but not really unfortunately 🫨
I am actually a bit confused, I *need* to apply .buttonStyle(.plain), otherwise the Toolbar Item always shows up as a full-colored prominent item in tint color. But it appears that the plain button style is causing the small hit target, so I’m left with 2 choices:
- colored toolbar button (which I don’t want) with proper hit target
- non-colored button with small hit target