how to make text selectable swiftui

254

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

Comments

Submit
0 Comments