So machen Sie Text SWOWUI SWIFTUI SELTE

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

Quaint Quail