I am implementing the glowing red button as a subclass of NSImageView. You can see my code here.
When a background activity is in progress, the red circle image does not glow fluidly as it should. However, it starts to glow by the end of the background process.
Can anybody give me any suggestions by looking at my code ?
If I understood you correctly, your red button doesn’t glow when you call it from a background thread.
Because you can not update UI from background thread. You may have two options here :
GlowingImageViewinstance in main thread by usingDispatchQueue.main.async