Fix bug in existingItemWithIdentifier.
This commit is contained in:
parent
5ffe3bb948
commit
c887cd7921
|
@ -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 }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue