0

我试图UIMenu在按下?按钮时显示而不显示任何UIAction向用户提供其他信息。我在我的应用程序的其他地方使用带有操作的菜单,因此我希望在整个应用程序中保持设计一致。我尝试过使用UIMenuchildren数组,但是当我点击按钮时它根本没有出现。如果我通过一个没有title属性的动作,那么我在文本下方有空白区域。

UIMenu(title: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s",
               image: nil,
               identifier: nil,
               options: .displayInline,
               children: [UIAction(handler: { action in })])

这是结果:

UIMenu 信息气泡

4

0 回答 0