CaliCastle / PopMenu

A fully customizable popup style menu for iOS 😎

Home Page:https://popmenu.cali.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

样式设置失效及坐标微调问题

jdleung opened this issue · comments

✔️ Issue Checklist

✍🏻 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?: ☑️