Capacitor Clipboard IOS not working

Hi,

I am using the Capacitor/Clipboard plugin for an IOS app. And it seems to not work. I am guessing I have to enable something in the info.plist file somehow?

const copyToClipboard = (selectedItem: string) => {
      const writeToClipboard = async () => {
        await Clipboard.write({
          string: selectedItem,
        });
      };
    
    };

This is the code I am using, copied directly from the plugin page (Capacitor - build cross platform apps with the web)

Thanks in advance.

Doh.

 const copyToClipboard = async (selectedItem: string) => {    
        await Clipboard.write({
          string: selectedItem,
        });
    };

Worked like charm.

I had inserted some of my own stuff there.