Open jdleung opened 3 years ago
因为弹出的菜单挡住了按钮,尝试改变y坐标作一个偏移 menu.contentFrame.origin.y -= 50
menu.contentFrame.origin.y -= 50
可以实现,但放在这行代码之后的样式设置就失效了,例如
menu.appearance.popMenuCornerRadius = 2 menu.appearance.popMenuColor.backgroundColor = .solid(fill: .purple)
通过测试menu.contentFrame.origin.y -= 50必须放在样式设置之后。
请问还有更好的办法来微调菜单的位置吗?谢谢
✔️ Issue Checklist
✍🏻 Issue Description
因为弹出的菜单挡住了按钮,尝试改变y坐标作一个偏移
menu.contentFrame.origin.y -= 50
可以实现,但放在这行代码之后的样式设置就失效了,例如
通过测试
menu.contentFrame.origin.y -= 50
必须放在样式设置之后。请问还有更好的办法来微调菜单的位置吗?谢谢
💻 Environment