]> git.r.bdr.sh - rbdr/captura/blame_incremental - Captura/Presentation/Windows/PreferencesWindow.swift
Separate some logic out of main app
[rbdr/captura] / Captura / Presentation / Windows / PreferencesWindow.swift
... / ...
CommitLineData
1import Cocoa
2import SwiftUI
3
4import Foundation
5
6class PreferencesWindow: NSWindow {
7
8 init() {
9 super.init(
10 contentRect: NSRect(x: 0, y: 0, width: 600, height: 600),
11 styleMask: [.titled, .closable, .resizable, .fullSizeContentView],
12 backing: .buffered,
13 defer: false)
14 super.center()
15 self.isReleasedWhenClosed = false
16 super.setFrameAutosaveName("Preferences Window")
17 super.contentView = NSHostingView(rootView: PreferencesScreen())
18 super.makeKeyAndOrderFront(nil)
19 }
20}