设置NSViewController背景色

在ViewDidload下。加上
self.view.wantsLayer = true
self.view.layer?.backgroundColor = #colorLiteral(red: 0.4392156899, green: 0.01176470611, blue: 0.1921568662, alpha: 1)

你可能感兴趣的:(设置NSViewController背景色)