I have created a custom TipViewStyle
to have more control over the layout in the TipView
.
However, I've noticed that by doing so I lose the default "X" dismiss button. I do not see any way to access it from the Configuration
.
Is my only solution to add an Action
to my Tip
?
Also, as an aside, has anyone figured out a way to add a shadow other than using the popoverTip
? It seems to be clipped
...
struct Test: TipViewStyle {
func makeBody(configuration: Configuration) -> some View {
HStack() {
configuration.image?.scaledToFit()
VStack(alignment: .leading) {
configuration.title
configuration.message
}
}
}
}