样式设置失效及坐标微调问题
jdleung opened this issue · comments
✔️ Issue Checklist
- I have updated PopMenu to the latest version.
- I have read the Contribution Guidelines.
- I have read the Documentation.
- I have searched for GitHub issues.
✍🏻 Issue Description
因为弹出的菜单挡住了按钮,尝试改变y坐标作一个偏移
menu.contentFrame.origin.y -= 50
可以实现,但放在这行代码之后的样式设置就失效了,例如
menu.appearance.popMenuCornerRadius = 2
menu.appearance.popMenuColor.backgroundColor = .solid(fill: .purple)
通过测试menu.contentFrame.origin.y -= 50
必须放在样式设置之后。
请问还有更好的办法来微调菜单的位置吗?谢谢
💻 Environment
- iOS Version: [13.3]
- Xcode Version: [11.3.1]
- Device(s): [iPhone 11]
- Simulator?: ☑️