SwiftUI-Tooltip
SwiftUI-Tooltip copied to clipboard
.toolTip size = .bottom falls behind other widgets in view
Describe the bug
When .toolTip(side: .bottom) is set the tool tip doesn't seem to respect Z stack. It puts the tooltip behind other widgets in the view.
To Reproduce Steps to reproduce the behavior:
- Set a tooltip to
side: .bottom - Observe tool tip in view is below other widgets.
Expected behavior
It should respect Z stack; like .toolTip(side: .top) does.
Screenshots
| .bottom | .top |
|---|---|
Smartphone (please complete the following information):
- Device: iphone SE (2023)
- OS: iOS 17.3.1
i face the sam issue
Put this tooltip in ZStack along with your views.
ZStack {
YourView()
TooltipButton()
}