First, many thanks for your time.
I'm developing a Safari extension with a toolbar icon. By clicking on the toolbar icon a small popover is shown and the user can set Safari's app extension preferences. I just used the projects defaults, so I have, in the extension:
- SafariExtensionHandler.swift
- SFSafariExtensionViewController.swift
- SafariExtensionViewController.xib --> contains the popover layout
So far so good. My machine runs macOS High Sierra. In SafariExtensionHandler.swift I have:
override func popoverViewController() -> SFSafariExtensionViewController {
return SafariExtensionViewController.shared
}
also in SFSafariToolbarItem, Action is Popover.
So when I click on the toolbar item, I get the SafariExtensionViewController.xib layout,
but not when I distribute to my clients, they get a functional extension, but they only see an empty popover (macOS High Sierra).
I'm using a Cocoa project with a Safari Extension attached to it and swift programming language.
Inside the SafariExtensionHandler I am overriding the viewWillAppear function, to populate correctly the settings
override func viewWillAppear() {
super.viewWillAppear()
// settings are here
}
Any clue? Is any additional call required in popoverViewController to ensure the xib controller is shown?