


Whats wrong with macOS screensavers? (I downloaded some third party screensavers from some websites & they were black screens as well. I am pretty sure it can not access the image file, but how can I fix this?Īctually the behavior of screensaver is very weird, when I add another UI element after that ImageView, neither of them showing on the screen. ImageView.image = NSImage(named: "Image") Release Build Screenshot Here is my code to show image: let imageView = NSImageView(frame: ame) (it can load image on Xcode debug build but not on release build on mac screensavers) The problem is this: it can show any Xcode objects such as textView. Also know, why is my Mac display not working.

I changed it to show image instead of textField. Plug in a MagSafe or USB-C power adapter to a power source and to your computer. I got this mac screensaver example from here.
