Safari App Extensions不允許您動態地更改工具欄按鈕圖像,但他們讓你add a string to the button as a badge通過傳遞一個字符串擴展處理程序的validationHandler方法: override func validateToolbarItem(in window: SFSafariWindow, validationHandler: @es
當我按照蘋果的例子,我總是得到nilactiveTab: override func toolbarItemClicked(in window: SFSafariWindow) {
// This method will be called when your toolbar item is clicked.
window.getActiveTab(completionHan