import Cocoa

class PreferencesWindowController: NSWindowController {
    static let sharedInstance: PreferencesWindowController = PreferencesWindowController(windowNibName: "Preferences")
}

import Cocoa

class PreferencesWindowController: NSWindowController {
    static let shared = PreferencesWindowController(windowNibName: "Preferences")
}

Use shared instead of sharedInstance
Use shared instead of sharedInstance
