]> git.r.bdr.sh - rbdr/captura/blob - Captura/Presentation/Windows/PreferencesWindow.swift
Allow URL configuration
[rbdr/captura] / Captura / Presentation / Windows / PreferencesWindow.swift
1 import Cocoa
2 import SwiftUI
3
4 import Foundation
5
6 class 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 self.center()
15 self.isReleasedWhenClosed = false
16 self.setFrameAutosaveName("Preferences Window")
17 self.contentView = NSHostingView(rootView: PreferencesScreen())
18 self.makeKeyAndOrderFront(nil)
19 self.orderFrontRegardless()
20 }
21 }