Copy and paste from an other aplication

Hello, I have developed an app with swift storyboard and have implemented the package"HotKey" to set the focus to my app and send the information of the clipboard to my app. Is there a way to copy a marked text in (for example) a webbrowser or a texteditor file to the clipboard with swift?