Fix bug in existingItemWithIdentifier.

This commit is contained in:
Brent Simmons 2018-02-17 20:46:20 -08:00
parent 5ffe3bb948
commit c887cd7921
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import AppKit
public extension NSToolbar {
public func existingItem(withIdentifier: NSToolbarItem.Identifier) -> NSToolbarItem? {
public func existingItem(withIdentifier identifier: NSToolbarItem.Identifier) -> NSToolbarItem? {
return items.firstElementPassingTest{ $0.itemIdentifier == identifier }
}