Before OS X Big Sur it was working fine (screenshots 2 and 3) using this code:
let prog = NSProgressIndicator(frame: NSMakeRect(1, 2,