Click to copy text to clipboard

Hey guys,

Building an iOS app. What might be the easiest way to have a button that includes a text that I could then have the user click and it would copy that text to their clipboard for them to paste later?

Thanks so much!

Sounds like you want control over the OS clipboard. There is no common abstraction for this yet. But looking at the API for this on iOS (https://developer.apple.com/reference/uikit/uipasteboard?language=objc), it looks easy enough to use from Foreign Code

Maybe this community package is relevant for your usecase https://github.com/heavenchains/FuseShareSheet

Even better, there already is a community package for dealing with the OS clipboard: https://github.com/jmoleiro/fuse-clipboard