MBPopup icon indicating copy to clipboard operation
MBPopup copied to clipboard

Decouple StatusItem?

Open Mazyod opened this issue 7 years ago • 1 comments

Thanks for sharing this great library.

I am evaluating it for my project, and what immediately jumps at me is the encapsulation of the statusItem as a let property within the library.

I already have implemented the code around having a statusItem with a custom window, but I would like to have a popup for certain events, meaning (for my case) it should be as simple as popup.present(from: statusItem) or something, if the library needs a statusItem to calculate position or whatnot.

Is that something you're interested in accommodating, or is it by design that the status item is an implementation detail/feature of this library?

Mazyod avatar Nov 29 '18 07:11 Mazyod

Hi Mazyod.

The library was not designed with that in mind, but it might be possible with some changes (and testing too...)

I'll give it a look when time permits. You could also give it a go - it shouldn't be difficult.

inket avatar Nov 29 '18 09:11 inket