how to make text selectable swiftui

250

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

Comments

Submit
0 Comments