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 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?