Safari App Extension remove toolbar item - Mac

Hi,

I have built a Safari App Extension for Mac. However, I want to remove the toolbar item from the extension. I have tried the following approach:

  1. Remove SFSafariToolbarItem dictionary from Info.plist
  2. Remove the toolbar icon pdf from the project
  3. Remove validateToolbarItem and popoverViewController from the extension handler.

This does not remove the toolbar item. Instead I have a toolbar item that shows my App Icon just greyed out. On clicking that item, it show an option to "Manage Extension".

What should I do to remove the toolbar item from my extension?

Safari App Extensions will always show a toolbar item by default. This allows your user to grant per-website access as they browse the web and acts as an indicator if the extension has access to the current website. If a user doesn't want the toolbar item, they can remove it from the toolbar themselves.

Safari App Extension remove toolbar item - Mac
 
 
Q