NSMenuItem with custom view disappears while scrolling
问题 I implement a NSMenu with NSMenuItem and set custom view to it. When menu is scrollable, mouse hovering on ▼ button to scroll will cause some menuItem disappear (or not draw correctly). Hope someone give me some help. I will appreciate that. Here's video about this issue: https://streamable.com/obrbon Here's my code: private func setupMenuItemView(_ menu: NSMenu) { let menuItemHeight: CGFloat = 20 let menuWidth = frame.width let textFieldPadding: CGFloat = 10 for menuItem in menu.items {