Extra note:
It's worth adding that this behaviour is the opposite from SwiftUI implementation.
From Apple's TipKitExamples app:
Image(systemName: "wand.and.stars")
.imageScale(.large)
// Add the popover to the feature you want to highlight.
.popoverTip(tip)
.onTapGesture {
// Invalidate the tip when someone uses the feature.
tip.invalidate(reason: .actionPerformed)
}
This piece of code does not disable the touch for underlaying views
Extra note:
It's worth adding that this behaviour is the opposite from SwiftUI implementation.
From Apple's TipKitExamples app:
Image(systemName: "wand.and.stars")
.imageScale(.large)
// Add the popover to the feature you want to highlight.
.popoverTip(tip)
.onTapGesture {
// Invalidate the tip when someone uses the feature.
tip.invalidate(reason: .actionPerformed)
}
This piece of code does not disable the touch for underlaying views