Skip to content

Instantly share code, notes, and snippets.

@chrispaynter
Last active February 25, 2021 15:21
Show Gist options
  • Save chrispaynter/7302d11df50c26d82432403f21fb9a26 to your computer and use it in GitHub Desktop.
Save chrispaynter/7302d11df50c26d82432403f21fb9a26 to your computer and use it in GitHub Desktop.
Medium - Simple Swinject boilerplate
import Cocoa
@main
class AppDelegate: NSObject, NSApplicationDelegate {
let appManager = AppManager();
func applicationDidFinishLaunching(_ aNotification: Notification) {
appManager.run()
}
}
class AppManager {
let fileSystem: FileSystemManager = FileSystemManager();
let statusBar: StatusBarManager = StatusBarManager();
// other code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment