How to update NSMenuItem while NSMenu is showing in macOS
Issue #213
Use Runloop
1 | timer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { [weak self] _ in |
Use Dispatch
1 | timer = Timer.scheduledTimer(withTimeInterval: 1, repeats: true, block: { [weak self] _ in |
Updated at 2020-09-08 07:54:36