Big Sur NSToolbarItem.Identifier.space has a hover color

Hi,

I'm debugging my app on an Apple Developer Transition Kit running Big Sur Beta 8

I have a NSToolbarItem.Identifier.space in my Toolbar, and when I hover over it, it changes color......this is news to me.

Previously on Catalina, you would get zero interaction with this.

Is there anyway to stop it having a rollover state?

Thanks

Chris

Replies

Ok, I found a twitter post and they said it was because the items were selectable, so my code became:

Code Block swift
func toolbarSelectableItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
    //return self.toolbarDefaultItemIdentifiers(toolbar) // old
    return [] //new
  }