how to make text selectable swiftui

262

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

Comments

Submit
0 Comments