Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

how to make text selectable swiftui

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

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #text #selectable #swiftui
ADD COMMENT
Topic
Name
7+9 =