API to allow tabs to be created with URL

This commit is contained in:
James Magahern
2020-07-31 14:41:30 -07:00
parent 9272c34d3d
commit 8b19db74df
2 changed files with 4 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ class TabPickerViewController: UIViewController, UICollectionViewDelegate
self.view = self.collectionView
let newTabButton = UIBarButtonItem(systemItem: .add, primaryAction: UIAction(handler: { [unowned self] _ in
let newTab = self.tabController.createNewTab()
let newTab = self.tabController.createNewTab(url: nil)
self.delegate?.tabPicker(self, didSelectTab: newTab)
}), menu: nil)