Copy the string from the iOS app to the clipboard. I think that it is a requirement that is sometimes required when developing an application.
It's very easy to implement. You can do it in one line. You don't even need to import the library.
copy2clipboard.swift
UIPasteboard.general.string = "The string you want to copy"
Xcode: 11.7 iOS: 13.7 Swift version: Swift5
that's all
Recommended Posts