Swift Encryption with RSA Public Key (MacOS)

Hi, i have a Public Key string with the format:
Code Block
-----BEGIN PUBLIC KEY------
blah blah blah
-----END PUBLIC KEY-----

I want to use it to encrypt another string. I have been looking but i cant seem to find a way to do this. Thanks in advance.
Swift Encryption with RSA Public Key (MacOS)
 
 
Q