想要的效果如图:
我用swiftui的popover来写,但是实现的效果是这个样子:
popover的参数如下:
.popover(isPresented: , attachmentAnchor: , arrowEdge: , content: )
尝试过修改attachmentAnchor可能方法不对,没有什么效果。
想要的效果如图:
我用swiftui的popover来写,但是实现的效果是这个样子:
popover的参数如下:
.popover(isPresented: , attachmentAnchor: , arrowEdge: , content: )
尝试过修改attachmentAnchor可能方法不对,没有什么效果。