📜  如何使文本可选择 swiftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.706000             🧑  作者: Mango

代码示例1
Text($someText)
.contextMenu(ContextMenu(menuItems: {
  Button("Copy", action: {
    UIPasteboard.general.string = someText
  })
}))